feat: notifikasi admin/monitoring via Telegram (WA fallback); alert staff dialihkan ke Telegram
This commit is contained in:
1 parent
52f6be26d1
commit
e838645531
7 files changed
+35
-9
No files matched your search
@@ -943,7 +943,7 @@ async function autoDeactivateOverdueCustomers(months = 3, actor = null) {
|
||||
const parts = [];
|
||||
if (processed) parts.push(`${processed} pelanggan NONAKTIF (menunggak ${m} bln)`);
|
||||
if (removed.length) parts.push(`${removed.length} pelanggan DIHAPUS (menunggak > ${m} bln)`);
|
||||
await waNotify.sendToStaff(`📋 *Auto-Tunggakan*
|
||||
await waNotify.notifyAdmin(`📋 *Auto-Tunggakan*
|
||||
${parts.join('; ')}.
|
||||
|
||||
Nonaktif: ${names.join(', ') || '-'}
|
||||
|
||||
Reference in new issue
Block a user