Skip to content

Commit

Permalink
fix migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
r1tsuu committed Dec 12, 2024
1 parent b6cdfd0 commit 9da022f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/drizzle/src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function runMigrationFile(payload: Payload, migration: Migration, batch: n

try {
await initTransaction(req)
const db = await getTransaction(this, req)
const db = await getTransaction(payload.db as DrizzleAdapter, req)
await migration.up({ db, payload, req })
payload.logger.info({ msg: `Migrated: ${migration.name} (${Date.now() - start}ms)` })
await payload.create({
Expand Down

0 comments on commit 9da022f

Please sign in to comment.