3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

Update messages.ts

This commit is contained in:
srqc 2023-02-09 19:53:14 -05:00 committed by GitHub
parent bce15b1cfa
commit 5ccc0f4cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<number> {