Skip to content

Commit

Permalink
Fix invalid character in datastore.js louischatriot#443
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 30, 2016
1 parent 46b3006 commit 1fc6796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Datastore.prototype.getCandidates = function (query, dontExpireStaleDocs, callba
docs.forEach(function (doc) {
var valid = true;
ttlIndexesFieldNames.forEach(function (i) {
if (doc[i] !== undefined && util.isDate(doc[i]) && Date.now() > doc[i].getTime() + self.ttlIndexes[i] * 1000) {
if (doc[i] !== undefined && util.isDate(doc[i]) && Date.now() > doc[i].getTime() + self.ttlIndexes[i] * 1000) {
valid = false;
}
});
Expand Down

0 comments on commit 1fc6796

Please sign in to comment.