@@ -5,7 +5,7 @@ import type { H3Event } from 'h3';
|
||||
|
||||
let instance: ReturnType<typeof drizzle<typeof schema>> | undefined;
|
||||
|
||||
export function useDb(event: H3Event) {
|
||||
export function useDb(event?: H3Event) {
|
||||
if (!instance) {
|
||||
const config = useRuntimeConfig(event);
|
||||
const client = createClient({
|
||||
|
||||
Reference in New Issue
Block a user