Skip to content

Commit

Permalink
fix: filter activities
Browse files Browse the repository at this point in the history
  • Loading branch information
ayocodingit committed Mar 31, 2023
1 parent e6b8be7 commit 7d138c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/core/repository/mongo/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class Repository {

if (query.is_today) {
filters = Object.assign(filters, {
date: date,
date: new Date(date),
})
} else {
filters = Object.assign(filters, {
date: {
$gt: date,
$gt: new Date(date),
},
})
}
Expand Down

0 comments on commit 7d138c9

Please sign in to comment.