diff --git a/.changeset/good-apes-drum.md b/.changeset/good-apes-drum.md new file mode 100644 index 0000000000..d85add1ae4 --- /dev/null +++ b/.changeset/good-apes-drum.md @@ -0,0 +1,5 @@ +--- +"blitz": patch +--- + +Fixes wrong import of the db module in `blitz db seed` command function diff --git a/packages/blitz/src/cli/commands/db.ts b/packages/blitz/src/cli/commands/db.ts index 0a9fd67bc8..65a20eed7f 100644 --- a/packages/blitz/src/cli/commands/db.ts +++ b/packages/blitz/src/cli/commands/db.ts @@ -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") }