IO-3096-GlobalNotifications: Self Watcher env var was not handled correctly
This commit is contained in:
@@ -138,7 +138,7 @@ const loadAppQueue = async ({ pubClient, logger, redisHelpers, ioRedis }) => {
|
|||||||
await pubClient.del(userKey);
|
await pubClient.del(userKey);
|
||||||
logger.logger.debug(`Deleted Redis key ${userKey}`);
|
logger.logger.debug(`Deleted Redis key ${userKey}`);
|
||||||
} else {
|
} else {
|
||||||
logger.logger.warn(`No notifications found for ${user} under ${userKey}`);
|
logger.logger.debug(`No notifications found for ${user} under ${userKey}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ const loadAppQueue = async ({ pubClient, logger, redisHelpers, ioRedis }) => {
|
|||||||
`Sent ${notifications.length} consolidated notifications to ${user} for jobId ${jobId} with notificationId ${notificationId}`
|
`Sent ${notifications.length} consolidated notifications to ${user} for jobId ${jobId} with notificationId ${notificationId}`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
logger.logger.warn(`No socket IDs found for ${user} in bodyShopId ${bodyShopId}`);
|
logger.logger.debug(`No socket IDs found for ${user} in bodyShopId ${bodyShopId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const { dispatchEmailsToQueue } = require("./queues/emailQueue");
|
|||||||
const { dispatchAppsToQueue } = require("./queues/appQueue");
|
const { dispatchAppsToQueue } = require("./queues/appQueue");
|
||||||
|
|
||||||
// If true, the user who commits the action will NOT receive notifications; if false, they will.
|
// If true, the user who commits the action will NOT receive notifications; if false, they will.
|
||||||
const FILTER_SELF_FROM_WATCHERS = process.env?.FILTER_SELF_FROM_WATCHERS === "true";
|
const FILTER_SELF_FROM_WATCHERS = process.env?.FILTER_SELF_FROM_WATCHERS !== "false";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an event and determines matching scenarios for notifications.
|
* Parses an event and determines matching scenarios for notifications.
|
||||||
|
|||||||
Reference in New Issue
Block a user