This commit is contained in:
not-nullptr 2024-03-10 04:37:12 +00:00
parent 5351c54d8d
commit f56d94bffc
4 changed files with 69 additions and 1 deletions

View file

@ -1,9 +1,10 @@
import { db } from "$lib/server/db";
import "reflect-metadata";
import { building } from "$app/environment";
import type { Handle } from "@sveltejs/kit";
const runAllTheInitFunctions = async () => {
await db.initialize();
if (!db.isInitialized) await db.initialize();
};
if (!building) {