mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fix type on mongodb if key has expireAt
This commit is contained in:
		| @@ -108,6 +108,7 @@ module.exports = function (db, module) { | ||||
| 			if (!data) { | ||||
| 				return callback(null, null); | ||||
| 			} | ||||
| 			delete data.expireAt; | ||||
| 			var keys = Object.keys(data); | ||||
| 			if (keys.length === 4 && data.hasOwnProperty('_key') && data.hasOwnProperty('score') && data.hasOwnProperty('value')) { | ||||
| 				return callback(null, 'zset'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user