diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-08 23:19:06 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | 5bddb3a758d9f74203c4884bde65cc23d2b0d748 (patch) | |
tree | 328909105f28d0dad53fe0076d62cffb0acc59e4 | |
parent | Remove accidental debug logging (diff) | |
download | server-5bddb3a758d9f74203c4884bde65cc23d2b0d748.tar.xz |
Fix missing import in refactor
-rw-r--r-- | bundle/src/Server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index 71a60d49..81948666 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -7,7 +7,7 @@ import * as Gateway from "@fosscord/gateway"; import { CDNServer } from "@fosscord/cdn"; import express from "express"; import { green, bold, yellow } from "picocolors"; -import { Config, initDatabase } from "@fosscord/util"; +import { Config, getOrInitialiseDatabase } from "@fosscord/util"; import * as Sentry from "@sentry/node"; import * as Tracing from "@sentry/tracing"; @@ -34,7 +34,7 @@ process.on('SIGTERM', () => { async function main() { server.listen(port); - await initDatabase(); + await getOrInitialiseDatabase(); await Config.init(); // only set endpointPublic, if not already set await Config.set({ |