Compare commits

..

No commits in common. "2fdcc1633dab0bf01172b8a0fffc5dbd0431c7df" and "e389a3d2f92a4374747b2e4b927ae47732f43ea0" have entirely different histories.

View File

@ -7,7 +7,7 @@ import {
} from '$env/static/private'
import PG from '$lib/server/database';
import { building } from '$app/environment';
// import { building } from '$app/environment';
import init_db from '$lib/server/database/init';
export const POST: RequestHandler = async ({ url, locals }) => {
@ -17,6 +17,6 @@ export const POST: RequestHandler = async ({ url, locals }) => {
return error(401, 'Unauthorized');
}
if (!building) await init_db(await PG(locals.db));
await init_db(await PG(locals.db));
return new Response(String(token));
};