This commit is contained in:
Dragory 2020-05-28 02:34:26 +03:00
parent 8f71e51041
commit 51a16ee1aa
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -12,7 +12,7 @@ const CLEANUP_INTERVAL = 5 * MINUTES;
* How long message edits, deletions, etc. will include the original message content.
* This is very heavy storage-wise, so keeping it as low as possible is ideal.
*/
const RETENTION_PERIOD = 1 * DAYS;
const RETENTION_PERIOD = 4 * DAYS;
async function cleanup() {
const repository = getRepository(SavedMessage);