Skip to content

Commit a79d78c

Browse files
feat: dedup values passed to PostgrestFilterBuilder.in (#517)
1 parent f730aa7 commit a79d78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PostgrestFilterBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default class PostgrestFilterBuilder<
239239
* @param values - The values array to filter with
240240
*/
241241
in(column: string, values: readonly unknown[]): this {
242-
const cleanedValues = values
242+
const cleanedValues = Array.from(new Set(values))
243243
.map((s) => {
244244
// handle postgrest reserved characters
245245
// https://postgrest.org/en/v7.0.0/api.html#reserved-characters

0 commit comments

Comments
 (0)