Skip to content

Commit

Permalink
fix: date comaprison
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 17, 2024
1 parent edc2fe9 commit f4b2994
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@
return queryMatch({ [property]: getValueFromObject(dataValue, property) }, { [property]: query[key][property] })
} else {
let queryValue = query[key][property]
if (isValidDate(queryValue) && isValidDate(dataValue)) {
queryValue = new Date(queryValue)
dataValue = new Date(dataValue)
}
let queryStatus = false
switch (property) {
case '$eq':
Expand Down

0 comments on commit f4b2994

Please sign in to comment.