fix(Supabase Node): Fix issue with delete not always working (#10952)

This commit is contained in:
Jon
2024-09-26 17:30:08 +01:00
committed by GitHub
parent 79622b5f26
commit 1944b46fd4

View File

@@ -186,8 +186,8 @@ export class Supabase implements INodeType {
if (operation === 'delete') { if (operation === 'delete') {
const tableId = this.getNodeParameter('tableId', 0) as string; const tableId = this.getNodeParameter('tableId', 0) as string;
const filterType = this.getNodeParameter('filterType', 0) as string; const filterType = this.getNodeParameter('filterType', 0) as string;
let endpoint = `/${tableId}`;
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
let endpoint = `/${tableId}`;
if (filterType === 'manual') { if (filterType === 'manual') {
const matchType = this.getNodeParameter('matchType', 0) as string; const matchType = this.getNodeParameter('matchType', 0) as string;
const keys = this.getNodeParameter('filters.conditions', i, []) as IDataObject[]; const keys = this.getNodeParameter('filters.conditions', i, []) as IDataObject[];