diff options
Diffstat (limited to 'packages/db/src/index.ts')
| -rw-r--r-- | packages/db/src/index.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/db/src/index.ts b/packages/db/src/index.ts index 9ebf611e..b480f566 100644 --- a/packages/db/src/index.ts +++ b/packages/db/src/index.ts @@ -19,11 +19,7 @@ function getDb() { } // Export a proxy that forwards all calls to the actual db instance -export const db = new Proxy({} as ReturnType<typeof drizzle>, { - get(target, prop) { - return getDb()[prop as keyof typeof _db]; - }, -}); +export const db = getDb(); // Re-export schema for convenience export * from "./schema"; |
