From d77be2c94ea8fd0f970cd8356ae273b835a557cb Mon Sep 17 00:00:00 2001 From: Jimmy Domagala-Tang Date: Thu, 23 Oct 2025 19:44:19 -0400 Subject: [PATCH] adding test for processNotifications GitOrigin-RevId: 35825755344e9cc10f9e571a253a2eae982b306a --- services/web/config/settings.defaults.js | 2 +- ...ltNotifications_index_from_scheduledAt_to_createdAt.mjs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/config/settings.defaults.js b/services/web/config/settings.defaults.js index 91efc0c6f6..3fb6ea2583 100644 --- a/services/web/config/settings.defaults.js +++ b/services/web/config/settings.defaults.js @@ -720,7 +720,7 @@ module.exports = { parseInt(process.env.COMMENT_MENTION_DELAY_MINUTES) || 30 * 60 * 1000, // 30 minutes // Comment mention notifications will wait at least this long before being sent - commentMentionMinDelay: + commentMentionMinAge: parseInt(process.env.COMMENT_MENTION_DELAY_MINUTES) || 10 * 60 * 1000, // 10 minutes // Maximum JSON size in HTTP requests diff --git a/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs b/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs index 9a27e3e024..6f7ede2d2e 100644 --- a/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs +++ b/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs @@ -23,6 +23,13 @@ const newIndexes = [ name: 'createdAt_1', expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours }, + { + key: { + project_id: 1, + }, + name: 'project_id_1', + expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours + }, ] const migrate = async client => {