เผยแพร่โครงสร้างเพิ่ม rabbit mq #666

This commit is contained in:
AdisakKanthawilang 2024-10-22 10:28:21 +07:00
parent 2dcaa8ae4c
commit 9d9795c614
4 changed files with 105 additions and 111 deletions

View file

@ -37,8 +37,11 @@ async function main() {
const APP_PORT = +(process.env.APP_PORT || 3000);
const cronTime = "0 8 * * * *"; // ตั้งเวลาทุกวันเวลา 08:00:00
// const cronTime = "*/10 * * * * *";
cron.schedule(cronTime, async () => {
try {
console.log("[Runing cronjob]");
const orgController = new OrganizationController();
await orgController.cronjobRevision();
} catch (error) {