mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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) {
|
if (useReturning) {
|
||||||
return extractReturningData(result.raw);
|
return normalizeRows(extractReturningData(result.raw), columns);
|
||||||
}
|
}
|
||||||
|
|
||||||
const ids = affectedRows.map((row) => row.id);
|
const ids = affectedRows.map((row) => row.id);
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ function hasRowReturnData(data: unknown): data is DataStoreRowReturn {
|
|||||||
'id' in data &&
|
'id' in data &&
|
||||||
isNumber(data.id) &&
|
isNumber(data.id) &&
|
||||||
'createdAt' in data &&
|
'createdAt' in data &&
|
||||||
isDate(data.createdAt) &&
|
(isDate(data.createdAt) || typeof data.createdAt === 'string') &&
|
||||||
'updatedAt' in data &&
|
'updatedAt' in data &&
|
||||||
isDate(data.updatedAt)
|
(isDate(data.updatedAt) || typeof data.updatedAt === 'string')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user