mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Update data table delete row endpoint to accept filter as string (no-changelog) (#19673)
This commit is contained in:
@@ -50,6 +50,10 @@ export async function execute(
|
||||
|
||||
const filter = getSelectFilter(this, index);
|
||||
|
||||
if (filter.filters.length === 0) {
|
||||
throw new NodeOperationError(this.getNode(), 'At least one condition is required');
|
||||
}
|
||||
|
||||
if (dryRun) {
|
||||
const { data: rowsToDelete } = await dataStoreProxy.getManyRowsAndCount({ filter });
|
||||
return rowsToDelete.map((json) => ({ json }));
|
||||
|
||||
Reference in New Issue
Block a user