|
|
@ -84,7 +84,7 @@ Upgrade.upgrade = function() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function(next) {
|
|
|
|
function(next) {
|
|
|
|
RDB.hget('config', 'postDelay', function(err, postDelay) {
|
|
|
|
RDB.hget('config', 'postDelay', function(err, postDelay) {
|
|
|
|
if(parseInt(postDelay, 10) > 1000) {
|
|
|
|
if(parseInt(postDelay, 10) > 150) {
|
|
|
|
RDB.hset('config', 'postDelay', 10, function(err, success) {
|
|
|
|
RDB.hset('config', 'postDelay', 10, function(err, success) {
|
|
|
|
winston.info('[2013/11/11] Updated postDelay to 10 seconds.');
|
|
|
|
winston.info('[2013/11/11] Updated postDelay to 10 seconds.');
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|