code stable. terminal initializes, database successfully connects, reads and writes. css on maintenance page needs tweaking. terminal still displays before initialization.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { db } from "$lib/server/db";
|
||||
import { settings } from "$lib/server/db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
import type { PageServerLoad } from "./$types";
|
||||
|
||||
export const load: PageServerLoad = async () => {
|
||||
return {
|
||||
settings: await db.select({setting: settings.state}).from(settings).where(eq(settings.var, 'maintenance')).limit(1)
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user