Skip to content

Commit

Permalink
feat: dedup values passed to PostgrestFilterBuilder.in (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
travis-humata authored Feb 7, 2024
1 parent f730aa7 commit a79d78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PostgrestFilterBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default class PostgrestFilterBuilder<
* @param values - The values array to filter with
*/
in(column: string, values: readonly unknown[]): this {
const cleanedValues = values
const cleanedValues = Array.from(new Set(values))
.map((s) => {
// handle postgrest reserved characters
// https://postgrest.org/en/v7.0.0/api.html#reserved-characters
Expand Down

0 comments on commit a79d78c

Please sign in to comment.