repair: add cod-whatsapp-notif in process pm2

This commit is contained in:
2026-04-01 15:09:24 +07:00
parent 76ac604ba8
commit 0ce6a04f97

View File

@@ -151,7 +151,7 @@ class NotifikasiWaService {
async restartWhatsapp() {
try {
const processName = "Whatsapp-API-notification";
const processName = "Whatsapp-API-notification" && "cod-whatsapp-notif";
const { stdout } = await execPromise("pm2 jlist");
const processes = JSON.parse(stdout);
const waProcess = processes.find((p) => p.name === processName);