File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { drizzle } from "drizzle-orm/postgres-js";
33import postgres from "postgres" ;
44import { migrate } from "drizzle-orm/postgres-js/migrator" ;
55
6- export async function connectDb ( {
6+ export function connectDb ( {
77 url,
88 authToken,
99} : {
@@ -17,6 +17,5 @@ export async function connectDb({
1717 } ) ;
1818
1919 const db = drizzle ( client , { schema } ) ;
20- await migrate ( db , { migrationsFolder : "drizzle" } ) ;
2120 return db ;
2221}
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import { env } from "$env/dynamic/private";
22import { connectDb } from "./connectDb.js" ;
33
44const path = env . DATABASE_URL ?? "postgresql://localhost:5432/milei" ;
5- export const db = await connectDb ( {
5+ export const db = connectDb ( {
66 url : path ,
77} ) ;
You can’t perform that action at this time.
0 commit comments