Increase messages CLEAN_PER_LOOP to 500

This commit is contained in:
Dragory 2020-06-02 00:58:17 +03:00
parent 59918858ec
commit 3795ce6f1b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -11,7 +11,7 @@ import { connection } from "../db";
const RETENTION_PERIOD = 1 * DAYS;
const BOT_MESSAGE_RETENTION_PERIOD = 30 * MINUTES;
const DELETED_MESSAGE_RETENTION_PERIOD = 5 * MINUTES;
const CLEAN_PER_LOOP = 250;
const CLEAN_PER_LOOP = 500;
export async function cleanupMessages(): Promise<number> {
let cleaned = 0;