From 3b86bf4920a8887a76a98f4d680ef7d422876186 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 2 Jun 2026 22:20:14 +0700 Subject: [PATCH] `fix(discord-gateway): use const for sticker cache stats variable` --- .../discord-gateway/src/modules/ai-moderation/stickerCache.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/discord-gateway/src/modules/ai-moderation/stickerCache.ts b/services/discord-gateway/src/modules/ai-moderation/stickerCache.ts index 5d15d28..c360c45 100644 --- a/services/discord-gateway/src/modules/ai-moderation/stickerCache.ts +++ b/services/discord-gateway/src/modules/ai-moderation/stickerCache.ts @@ -7,7 +7,8 @@ const TTL_MS = 7 * 24 * 60 * 60 * 1000; // 7 days const MAX_SIZE_BYTES = 100 * 1024 * 1024; // 100MB hardcoded let ready = false; -const statsCache = { entryCount: 0, totalSizeBytes: 0 }; +// eslint-disable-next-line prefer-const -- reassigned in initStickerCache +let statsCache = { entryCount: 0, totalSizeBytes: 0 }; export interface StickerCacheEntry { base64: string;