Refactor: Update imports for server modules

This commit is contained in:
2024-09-27 00:16:57 +09:00
parent f11bdf15fc
commit dd057dd335
11 changed files with 129 additions and 104 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
import type { Handle } from '@sveltejs/kit'
import { getConnection } from '$lib/server/database/get_connection'
import { getPool } from '$lib/server/database/pool';
import git from '$lib/server/git';
export const handle: Handle = async ({ event, resolve }) => {
const pg = getConnection();
const pg = getPool;
event.locals.db = pg;
event.locals.git = git;
const result = await resolve(event);
return result;