Skip to content

Commit

Permalink
add catch in initdb
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Sep 19, 2023
1 parent bf18bac commit fd33600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/connection_helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LogHelper } from "./log_helper";
import {
WebWorkerRequest, EventQueue, API, WebWorkerResult,
WebWorkerRequest, API, WebWorkerResult,
EVENT, promise, IDataBase, IDbInfo, TMiddleware,
promiseResolve
} from "../common";
Expand Down
6 changes: 3 additions & 3 deletions src/worker/query_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ export class QueryManager {
this.util
).then(() => {
res(dbInfo);
});
});
}).catch(rej);
}).catch(rej);
}
else {
MetaHelper.get(
Expand All @@ -329,7 +329,7 @@ export class QueryManager {
this.util.db = value;
dbInfo.database = userDbSchema(this.db);
res(dbInfo);
});
}).catch(rej)
}
}).catch(rej);
});
Expand Down

0 comments on commit fd33600

Please sign in to comment.