From 5bddb3a758d9f74203c4884bde65cc23d2b0d748 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 8 Aug 2022 23:19:06 +0200 Subject: Fix missing import in refactor --- bundle/src/Server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle/src') 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({ -- cgit 1.5.1