Skip to content

Commit

Permalink
fix(Supabase Node): Fix issue with delete not always working
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom committed Sep 24, 2024
1 parent 46beda0 commit 69544c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Supabase/Supabase.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ export class Supabase implements INodeType {
if (operation === 'delete') {
const tableId = this.getNodeParameter('tableId', 0) as string;
const filterType = this.getNodeParameter('filterType', 0) as string;
let endpoint = `/${tableId}`;
for (let i = 0; i < length; i++) {
let endpoint = `/${tableId}`;
if (filterType === 'manual') {
const matchType = this.getNodeParameter('matchType', 0) as string;
const keys = this.getNodeParameter('filters.conditions', i, []) as IDataObject[];
Expand Down

0 comments on commit 69544c1

Please sign in to comment.