mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 01:40:28 +02:00
updated postDelay upgrade script to update if the old value is over 1000, not 10!
This commit is contained in:
@@ -84,7 +84,7 @@ Upgrade.upgrade = function() {
|
||||
},
|
||||
function(next) {
|
||||
RDB.hget('config', 'postDelay', function(err, postDelay) {
|
||||
if(parseInt(postDelay, 10) > 10) {
|
||||
if(parseInt(postDelay, 10) > 1000) {
|
||||
RDB.hset('config', 'postDelay', 10, function(err, success) {
|
||||
winston.info('[2013/11/11] Updated postDelay to 10 seconds.');
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user