From 55797019ec3d4d2a9260b047fb2796e8c7c6f6e6 Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 3 Oct 2023 09:50:02 +0200 Subject: [PATCH] Changed expiring document cron timer --- src/services/common/CronService/CronService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/common/CronService/CronService.ts b/src/services/common/CronService/CronService.ts index f184d6e0..c37c6860 100644 --- a/src/services/common/CronService/CronService.ts +++ b/src/services/common/CronService/CronService.ts @@ -80,7 +80,7 @@ export default class CronService { } public async checkDocumentsExpiration() { - const cronJob = new CronJob("*/10 * * * * *", async () => { + const cronJob = new CronJob("0 20 * * *", async () => { // Once a day at midnight try { const prisma = new PrismaClient();