summary refs log tree commit diff
path: root/cdn/src
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-08 22:55:14 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commitee01a689e255bcf8775387b3d5e4e8a6577908a3 (patch)
treec4af8a9baf8bd349bded7e7b6b7e4c8329a75f37 /cdn/src
parentFix accidental edit in benchmark (diff)
downloadserver-ee01a689e255bcf8775387b3d5e4e8a6577908a3.tar.xz
rename initDatabase to clarify function
Diffstat (limited to 'cdn/src')
-rw-r--r--cdn/src/Server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdn/src/Server.ts b/cdn/src/Server.ts

index b8d71fa9..b27d3321 100644 --- a/cdn/src/Server.ts +++ b/cdn/src/Server.ts
@@ -1,5 +1,5 @@ import { Server, ServerOptions } from "lambert-server"; -import { Config, initDatabase, registerRoutes } from "@fosscord/util"; +import { Config, getOrInitialiseDatabase, registerRoutes } from "@fosscord/util"; import path from "path"; import avatarsRoute from "./routes/avatars"; import iconsRoute from "./routes/role-icons"; @@ -15,7 +15,7 @@ export class CDNServer extends Server { } async start() { - await initDatabase(); + await getOrInitialiseDatabase(); await Config.init(); this.app.use((req, res, next) => { res.set("Access-Control-Allow-Origin", "*");