more fixes for #5660

This commit is contained in:
Julian Lam
2017-05-09 15:07:59 -04:00
parent 87fbb44ca8
commit ad14b0d60b
2 changed files with 3 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ module.exports = function (db, module) {
};
module.pexpireAt = function (key, timestamp, callback) {
timestamp = Math.min(timestamp, 8640000000000000);
module.setObjectField(key, 'expireAt', new Date(timestamp), callback);
};
};