This commit is contained in:
Andris Reinman 2023-03-16 11:03:18 +02:00
parent 502141edc8
commit 75ff12b33d
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 4 additions and 2 deletions

View file

@ -104,7 +104,9 @@ class Indexer {
} }
if (payload) { if (payload) {
let hasFeatureFlag = await db.redis.sismember(`feature:indexing`, entry.user.toString()); let hasFeatureFlag =
(config.enabledFeatureFlags && config.enabledFeatureFlags.indexer) || (await db.redis.sismember(`feature:indexing`, entry.user.toString()));
if (!hasFeatureFlag) { if (!hasFeatureFlag) {
log.silly('Indexer', `Feature flag not set, skipping user=%s command=%s message=%s`, entry.user, entry.command, entry.message); log.silly('Indexer', `Feature flag not set, skipping user=%s command=%s message=%s`, entry.user, entry.command, entry.message);
return; return;

View file

@ -1,6 +1,6 @@
{ {
"name": "wildduck", "name": "wildduck",
"version": "1.39.1", "version": "1.39.2",
"description": "IMAP/POP3 server built with Node.js and MongoDB", "description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {