fix(core): Use correct entity manager in Data Table update transaction (no-changelog) (#23019)

This commit is contained in:
Charlie Kolb
2025-12-10 15:40:08 +01:00
committed by GitHub
parent 840deaddf4
commit 124aa7bd73
@@ -330,7 +330,7 @@ export class DataTableRowsRepository {
if (!useReturning && returnData) {
// Only Postgres supports RETURNING statement on updates (with our typeorm),
// on other engines we must query the list of updates rows later by ID
affectedRows = await this.getAffectedRowsForUpdate(dataTableId, filter, columns, true, trx);
affectedRows = await this.getAffectedRowsForUpdate(dataTableId, filter, columns, true, em);
}
setData.updatedAt = normalizeValueForDatabase(new Date(), 'date', dbType);