mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
more fixes
This commit is contained in:
@@ -126,7 +126,12 @@
|
||||
//hashes
|
||||
|
||||
module.setObject = function(key, data, callback) {
|
||||
redisClient.hmset(key, data, callback);
|
||||
// TODO: this crashes if callback isnt supplied -baris
|
||||
redisClient.hmset(key, data, function(err, res) {
|
||||
if(callback) {
|
||||
callback(err, res);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.setObjectField = function(key, field, value, callback) {
|
||||
|
||||
Reference in New Issue
Block a user