From f96e69cdbfa1ab5845429a0ffdbf3c3fa7d5e28e Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 8 Feb 2024 09:49:35 +0700 Subject: [PATCH] cron-job fix time --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index f7237f7d..876721b7 100644 --- a/src/app.ts +++ b/src/app.ts @@ -31,7 +31,7 @@ async function main() { const APP_HOST = process.env.APP_HOST || "0.0.0.0"; const APP_PORT = +(process.env.APP_PORT || 3000); - const cronTime = "0 0 * * * *"; // ตั้งเวลาทุกวันเวลา 00:00:00 + const cronTime = "0 8 * * * *"; // ตั้งเวลาทุกวันเวลา 08:00:00 cron.schedule(cronTime, async () => { try { const orgController = new OrganizationController();