Skip to content

Commit

Permalink
feat: add await for migrate function
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Aug 20, 2023
1 parent efc84e6 commit 96793f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ const client = createClient({

export const db = drizzle(client);

if (process.env.NODE_ENV !== 'production') {
migrate(db, { migrationsFolder: './migrations' });
}
await migrate(db, { migrationsFolder: './migrations' });

0 comments on commit 96793f0

Please sign in to comment.