fix: add missing await (#10084)

This commit is contained in:
pro100kryto 2023-06-19 15:10:47 -03:00 committed by GitHub
parent d4607a8672
commit f5d43975db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()