mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04: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.info("index", "Starting dimension " + CURRENT_VERSION);
|
||||
|
||||
const webserver = new Webserver();
|
||||
async function startup() {
|
||||
await DimensionStore.updateSchema();
|
||||
|
||||
DimensionStore.updateSchema()
|
||||
.then(() => webserver.start())
|
||||
.then(() => {
|
||||
LogService.info("index", "Dimension is ready!");
|
||||
});
|
||||
const webserver = new Webserver();
|
||||
await webserver.start();
|
||||
}
|
||||
|
||||
startup().then(() => LogService.info("index", "Dimension is ready!"));
|
Loading…
Reference in New Issue
Block a user