cron-job fix time
This commit is contained in:
parent
8bbc6e9555
commit
f96e69cdbf
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ async function main() {
|
||||||
const APP_HOST = process.env.APP_HOST || "0.0.0.0";
|
const APP_HOST = process.env.APP_HOST || "0.0.0.0";
|
||||||
const APP_PORT = +(process.env.APP_PORT || 3000);
|
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 () => {
|
cron.schedule(cronTime, async () => {
|
||||||
try {
|
try {
|
||||||
const orgController = new OrganizationController();
|
const orgController = new OrganizationController();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue