From 5ccc0f4cfcfa72a4aff4516f4ced4baad40490aa Mon Sep 17 00:00:00 2001 From: srqc <98553181+2srqc@users.noreply.github.com> Date: Thu, 9 Feb 2023 19:53:14 -0500 Subject: [PATCH] Update messages.ts --- backend/src/data/cleanup/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/data/cleanup/messages.ts b/backend/src/data/cleanup/messages.ts index 59290e63..c571e415 100644 --- a/backend/src/data/cleanup/messages.ts +++ b/backend/src/data/cleanup/messages.ts @@ -10,7 +10,7 @@ import { SavedMessage } from "../entities/SavedMessage"; */ const RETENTION_PERIOD = 30 * DAYS; const BOT_MESSAGE_RETENTION_PERIOD = 30 * MINUTES; -const DELETED_MESSAGE_RETENTION_PERIOD = 5 * MINUTES; +const DELETED_MESSAGE_RETENTION_PERIOD = RETENTION_PERIOD; // Because of the archive command, we want to keep those, too const CLEAN_PER_LOOP = 100; export async function cleanupMessages(): Promise {