Skip to content

Node.js based forum software built for the modern web

50

barisusakli017f6bde2cdf
diff --git a/src/database/mongo/helpers.js b/src/database/mongo/helpers.js
index 4a20eed2df..1eec59c3b8 100644
--- a/src/database/mongo/helpers.js
+++ b/src/database/mongo/helpers.js
@@ -40,7 +40,7 @@ helpers.checkKeys = function(keys) {
winston.warn('[INVALID_KEYS] ', e.stack);
return;
}
- if (keys.length >= 50) {
+ if (keys.length > 50) {
var e = new Error('too many keys');
winston.warn('[TOO_MANY_KEYS] ' + keys.length + ' ' + keys[0] + ' ' + keys[keys.length - 1] + '\n', e.stack);
}