Skip to content

Commit

Permalink
also check for dateString
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Jul 19, 2015
1 parent a69eac5 commit d00f87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/entries.js
Expand Up @@ -39,7 +39,7 @@ function storage(env, ctx) {
function find ( ) {
var finder = find_sgv_query(opts);
var query = finder && finder.find ? finder.find : { };
if (!query.date) {
if (!query.date && !query.dateString) {
query.date = { "$gte": Date.now( ) - ( TWO_DAYS * 2 ) }
}
return query;
Expand Down

0 comments on commit d00f87d

Please sign in to comment.