From a8cb00baa734021402036a2d919e242a593b31fa Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 31 Mar 2026 15:58:54 +0100 Subject: [PATCH] adjust email digest window --- .../notification/services/page-update-email-rate-limiter.ts | 2 +- apps/server/src/core/notification/services/page.notification.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/core/notification/services/page-update-email-rate-limiter.ts b/apps/server/src/core/notification/services/page-update-email-rate-limiter.ts index 8989b1d3..59867f41 100644 --- a/apps/server/src/core/notification/services/page-update-email-rate-limiter.ts +++ b/apps/server/src/core/notification/services/page-update-email-rate-limiter.ts @@ -4,7 +4,7 @@ import type { Redis } from 'ioredis'; const KEY_PREFIX = 'page-update:emails:'; const DIGEST_PREFIX = 'page-update:digest:'; -const TTL_SECONDS = 28800; // 8 hours +const TTL_SECONDS = 86400; // 24 hours const MAX_IMMEDIATE_EMAILS = 4; @Injectable() diff --git a/apps/server/src/core/notification/services/page.notification.ts b/apps/server/src/core/notification/services/page.notification.ts index 40b817cb..9e5c75dd 100644 --- a/apps/server/src/core/notification/services/page.notification.ts +++ b/apps/server/src/core/notification/services/page.notification.ts @@ -23,7 +23,7 @@ import { getPageTitle } from '../../../common/helpers'; import { QueueJob, QueueName } from '../../../integrations/queue/constants'; const PAGE_UPDATE_COOLDOWN_HOURS = 7; -const DIGEST_DELAY_MS = 3 * 60 * 60 * 1000; // 3 hours +const DIGEST_DELAY_MS = 12 * 60 * 60 * 1000; // 12 hours @Injectable() export class PageNotificationService {