updated postDelay upgrade script to update if the old value is over 1000, not 10!

This commit is contained in:
Julian Lam
2013-11-11 12:41:33 -05:00
parent 4ce6ac5af9
commit 5647d55147

View File

@@ -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();