mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
fix(core): Use correct entity manager in Data Table update transaction (no-changelog) (#23019)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user