Add standardObject seeds (#2140)

* Add standardObject seeds

* use for of
This commit is contained in:
Weiko
2023-10-20 14:35:25 +02:00
committed by GitHub
parent 993be61ee2
commit cc9ffb16ad
4 changed files with 81 additions and 2 deletions

View File

@ -45,9 +45,10 @@ export class MigrationRunnerService {
// Loop over each migration and create or update the table
// TODO: Should be done in a transaction
flattenedPendingMigrations.forEach(async (migration) => {
for (const migration of flattenedPendingMigrations) {
await this.handleTableChanges(queryRunner, schemaName, migration);
});
}
// Update appliedAt date for each migration
// TODO: Should be done after the migration is successful