Skip to content

Node.js based forum software built for the modern web

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

Julian Lam5647d55147a1
diff --git a/src/upgrade.js b/src/upgrade.js
index f5a4789b5b..75c05b7257 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -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();