Skip to content

Commit

Permalink
(Fix) Bug Report: Filters "greaterThan" / "greaterThanEqual" treat al…
Browse files Browse the repository at this point in the history
…l input as numbers

Fixes appwrite#1175
  • Loading branch information
iamAyushChamoli committed Jul 29, 2024
1 parent f5e6eab commit 184ccc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/filters/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ export const operators: Record<string, Operator> = {
types: ['string']
},
'greater than': {
toQuery: (attr, input) => Query.greaterThan(attr, Number(input)),
toQuery: Query.greaterThan,
toTag: (attribute, input) => `**${attribute}** greater than **${input}**`,
types: ['integer', 'double', 'datetime']
},
'greater than or equal': {
toQuery: (attr, input) => Query.greaterThanEqual(attr, Number(input)),
toQuery: Query.greaterThanEqual,
toTag: (attribute, input) => `**${attribute}** greater than or equal to **${input}**`,
types: ['integer', 'double', 'datetime']
},
Expand Down

0 comments on commit 184ccc5

Please sign in to comment.