mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #491, added check to prevent crash in getAnonUserCount
This commit is contained in:
@@ -81,6 +81,19 @@ Upgrade.upgrade = function() {
|
||||
next();
|
||||
}
|
||||
});
|
||||
},
|
||||
function(next) {
|
||||
RDB.hget('config', 'postDelay', function(err, postDelay) {
|
||||
if(parseInt(postDelay, 10) > 10) {
|
||||
RDB.hset('config', 'postDelay', 10, function(err, success) {
|
||||
winston.info('[2013/11/11] Updated postDelay to 10 seconds.');
|
||||
next();
|
||||
});
|
||||
} else {
|
||||
winston.info('[2013/11/11] Update to postDelay skipped.');
|
||||
next();
|
||||
}
|
||||
});
|
||||
}
|
||||
// Add new schema updates here
|
||||
], function(err) {
|
||||
|
||||
Reference in New Issue
Block a user