Changed expiring document cron timer
This commit is contained in:
parent
9418c314bb
commit
55797019ec
@ -80,7 +80,7 @@ export default class CronService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async checkDocumentsExpiration() {
|
public async checkDocumentsExpiration() {
|
||||||
const cronJob = new CronJob("*/10 * * * * *", async () => {
|
const cronJob = new CronJob("0 20 * * *", async () => {
|
||||||
// Once a day at midnight
|
// Once a day at midnight
|
||||||
try {
|
try {
|
||||||
const prisma = new PrismaClient();
|
const prisma = new PrismaClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user