summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--cdn/src/Server.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/cdn/src/Server.ts b/cdn/src/Server.ts
index 522e11c2..f4a6b576 100644
--- a/cdn/src/Server.ts
+++ b/cdn/src/Server.ts
@@ -1,5 +1,5 @@
 import { Server, ServerOptions } from "lambert-server";
-import { Config, db } from "@fosscord/util";
+import { Config, initDatabase } from "@fosscord/util";
 import path from "path";
 import avatarsRoute from "./routes/avatars";
 
@@ -13,8 +13,7 @@ export class CDNServer extends Server {
 	}
 
 	async start() {
-		// @ts-ignore
-		await (db as Promise<Connection>);
+		await initDatabase();
 		await Config.init();
 		this.app.use((req, res, next) => {
 			res.set("Access-Control-Allow-Origin", "*");