adjust email digest window

This commit is contained in:
Philipinho
2026-03-31 15:58:54 +01:00
parent 91e1b6c4a2
commit a8cb00baa7
2 changed files with 2 additions and 2 deletions
@@ -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()
@@ -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 {