mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
more fixes for #5660
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user