fix(Supabase Node): Allow for filtering on the same field multiple times (#12429)

This commit is contained in:
Dana
2025-01-03 18:03:01 +01:00
committed by GitHub
parent 4d1d5d9dbc
commit d7cc789d79
2 changed files with 101 additions and 2 deletions

View File

@@ -293,8 +293,8 @@ export class Supabase implements INodeType {
if (keys.length !== 0) {
if (matchType === 'allFilters') {
const data = keys.reduce((obj, value) => buildQuery(obj, value), {});
Object.assign(qs, data);
const data = keys.map((key) => buildOrQuery(key));
Object.assign(qs, { and: `(${data.join(',')})` });
}
if (matchType === 'anyFilter') {
const data = keys.map((key) => buildOrQuery(key));