Refactor: Update imports for server modules
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user