13 files changed
+321
-325
No files matched your search
@@ -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