mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(core): Optionally return updated/upserted Data Table rows (no-changelog) (#18735)
This commit is contained in:
@@ -17,6 +17,7 @@ const updateDataStoreRowShape = {
|
||||
.refine((obj) => Object.keys(obj).length > 0, {
|
||||
message: 'data must not be empty',
|
||||
}),
|
||||
returnData: z.boolean().default(false),
|
||||
};
|
||||
|
||||
export class UpdateDataStoreRowDto extends Z.class(updateDataStoreRowShape) {}
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
const upsertDataStoreRowsShape = {
|
||||
rows: z.array(z.record(dataStoreColumnNameSchema, dataStoreColumnValueSchema)),
|
||||
matchFields: z.array(dataStoreColumnNameSchema).min(1),
|
||||
returnData: z.boolean().optional().default(false),
|
||||
};
|
||||
|
||||
export class UpsertDataStoreRowsDto extends Z.class(upsertDataStoreRowsShape) {}
|
||||
|
||||
Reference in New Issue
Block a user