mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
closes #5480
This commit is contained in:
@@ -97,6 +97,9 @@ module.exports = function (redisClient, module) {
|
||||
|
||||
module.deleteObjectField = function (key, field, callback) {
|
||||
callback = callback || function () {};
|
||||
if (field === null) {
|
||||
return setImmediate(callback);
|
||||
}
|
||||
redisClient.hdel(key, field, function (err, res) {
|
||||
callback(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user