mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Supabase Node): Allow for filtering on the same field multiple times (#12429)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user