cron-job fix time

This commit is contained in:
AdisakKanthawilang 2024-02-08 09:49:35 +07:00
parent 8bbc6e9555
commit f96e69cdbf

View file

@ -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();