feat(wa): notifikasi pelanggan tiket + broadcast status layanan
All checks were successful
CI / test (push) Successful in 2m3s
All checks were successful
CI / test (push) Successful in 2m3s
- WA konfirmasi ke pelanggan saat tiket dibuat (web & APK) - checkbox + target (semua/area/router) di Status Layanan - WA gangguan/perbaikan saat mode berubah, WA layanan pulih saat NORMAL - broadcast latar belakang dengan jeda acak, dedupe nomor, log [NoticeWA] - versi 0.5.4
This commit is contained in:
@@ -3002,6 +3002,11 @@ router.post('/tickets/create', uploadCustomer.array('photos', 5), async (req, re
|
||||
if (!shouldSendWa(key)) continue;
|
||||
await waNotify.sendText(digits, waMsg);
|
||||
}
|
||||
|
||||
// WA konfirmasi ke pelanggan yang membuat tiket
|
||||
try {
|
||||
await require('../services/serviceNoticeNotifyService').notifyTicketCreated(customer, ticketId, subject);
|
||||
} catch (_) {}
|
||||
}
|
||||
} catch (waErr) {
|
||||
logger.error(`[Ticket] WA Notification Error: ${waErr.message}`);
|
||||
|
||||
Reference in New Issue
Block a user