Skip to content

Commit

Permalink
fix: add missing await (#10084)
Browse files Browse the repository at this point in the history
  • Loading branch information
p1k2i committed Jun 19, 2023
1 parent d4607a8 commit f5d4397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/MigrationExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ export class MigrationExecutor {
this.queryRunner || this.connection.createQueryRunner()

try {
return callback(queryRunner)
return await callback(queryRunner)
} finally {
if (!this.queryRunner) {
await queryRunner.release()
Expand Down

0 comments on commit f5d4397

Please sign in to comment.