Skip to content

Commit

Permalink
fix: fix wrong import of the db module in blitz db seed command fun…
Browse files Browse the repository at this point in the history
…ction (#3526)

* fix: fix wrong import of the db module
  • Loading branch information
Trancever authored Jul 11, 2022
1 parent f397cc2 commit cacb65d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-apes-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"blitz": patch
---

Fixes wrong import of the db module in `blitz db seed` command function
2 changes: 1 addition & 1 deletion packages/blitz/src/cli/commands/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const runSeed = async (seedBasePath: string) => {
throw err
}

const db = require(dbPath).db
const db = require(dbPath)
await db.$disconnect()
console.log("Done Seeding")
}
Expand Down

0 comments on commit cacb65d

Please sign in to comment.