mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closes #635
This commit is contained in:
@@ -231,7 +231,15 @@ Upgrade.upgradeRedis = function(callback) {
|
||||
|
||||
function updateKeyToHash(key, next) {
|
||||
RDB.get(key, function(err, value) {
|
||||
RDB.hset('global', newKeys[key], value, next);
|
||||
if(err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if(value === null) {
|
||||
RDB.hset('global', newKeys[key], 0, next);
|
||||
} else {
|
||||
RDB.hset('global', newKeys[key], value, next);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user