diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts index 4e7ed8ce5471..35aa5eb95bdb 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts @@ -138,7 +138,7 @@ export class WorkspaceMigrationEnumService { `SELECT id, "${oldColumnName}" FROM "${schemaName}"."${tableName}"`, ); - values.map(async (value) => { + for (const value of values) { let val = value[oldColumnName]; if (/^\{.*\}$/.test(val)) { @@ -159,7 +159,7 @@ export class WorkspaceMigrationEnumService { SET "${columnDefinition.columnName}" = ${val} WHERE id='${value.id}' `); - }); + } } private async dropOldEnumType(