mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(core): Normalize Data Table return on update and allow string returns from DB (no-changelog) (#19106)
This commit is contained in:
@@ -268,7 +268,7 @@ export class DataStoreRowsRepository {
|
||||
}
|
||||
|
||||
if (useReturning) {
|
||||
return extractReturningData(result.raw);
|
||||
return normalizeRows(extractReturningData(result.raw), columns);
|
||||
}
|
||||
|
||||
const ids = affectedRows.map((row) => row.id);
|
||||
|
||||
@@ -163,9 +163,9 @@ function hasRowReturnData(data: unknown): data is DataStoreRowReturn {
|
||||
'id' in data &&
|
||||
isNumber(data.id) &&
|
||||
'createdAt' in data &&
|
||||
isDate(data.createdAt) &&
|
||||
(isDate(data.createdAt) || typeof data.createdAt === 'string') &&
|
||||
'updatedAt' in data &&
|
||||
isDate(data.updatedAt)
|
||||
(isDate(data.updatedAt) || typeof data.updatedAt === 'string')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user