mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-01 06:32:12 +00:00
Change the Dimension startup to make use of async/await
This commit is contained in:
parent
9a62b34fb7
commit
b0de14eb57
13
src/index.ts
13
src/index.ts
@ -7,10 +7,11 @@ import { CURRENT_VERSION } from "./version";
|
|||||||
LogService.configure(config.logging);
|
LogService.configure(config.logging);
|
||||||
LogService.info("index", "Starting dimension " + CURRENT_VERSION);
|
LogService.info("index", "Starting dimension " + CURRENT_VERSION);
|
||||||
|
|
||||||
const webserver = new Webserver();
|
async function startup() {
|
||||||
|
await DimensionStore.updateSchema();
|
||||||
|
|
||||||
DimensionStore.updateSchema()
|
const webserver = new Webserver();
|
||||||
.then(() => webserver.start())
|
await webserver.start();
|
||||||
.then(() => {
|
}
|
||||||
LogService.info("index", "Dimension is ready!");
|
|
||||||
});
|
startup().then(() => LogService.info("index", "Dimension is ready!"));
|
Loading…
Reference in New Issue
Block a user