Skip to content

Commit

Permalink
problem: date filter only one direction #986 reopened
Browse files Browse the repository at this point in the history
solution: modified the db query to filter date range correctly
  • Loading branch information
chamidu-supeshala committed Apr 7, 2018
1 parent a9e63ab commit 06e5fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/ui/pages/returnedCurrencies/returnedCurrencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Template.returnedCurrencies.onCreated(function bodyOnCreated() {
}

if (fromFilter != "" && toFilter != "") {
query["genesisTimestamp"] = { $gt: fromFilter, $lt: toFilter }
query["genesisTimestamp"] = { $gte: fromFilter, $lte: toFilter }
}
this.filter.set(query)
})
Expand Down

0 comments on commit 06e5fc3

Please sign in to comment.