From cf5676a674fcad9683df02daa4afed35c9adab84 Mon Sep 17 00:00:00 2001 From: teddys48 Date: Wed, 8 Oct 2025 16:24:19 +0700 Subject: [PATCH] update --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index fe5b639..c5431bb 100644 --- a/index.js +++ b/index.js @@ -44,9 +44,7 @@ cron.schedule( ); cron.schedule("* * * * *", async () => { - exec( - 'bash /home/script/script.sh', - (error, stdout, stderr) => { + exec("bash /home/script/script.sh", (error, stdout, stderr) => { if (error) { console.error(`Gagal menjalankan script: ${error.message}`); return; @@ -58,7 +56,7 @@ cron.schedule("* * * * *", async () => { } console.log(`Output: ${stdout}`); - } + }); }); app.use((req, res) => {