From b65eb3195cecc0b558d018c1bfb41282a3ff31cb Mon Sep 17 00:00:00 2001 From: oxpoe Date: Fri, 9 Oct 2026 09:07:20 +0700 Subject: [PATCH] fix(wa): pakai getTechById (getTechnicianById tidak ada) - notifikasi tiket oleh admin kini terkirim --- routes/adminPortal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/adminPortal.js b/routes/adminPortal.js index f4b17fb..5cdc975 100644 --- a/routes/adminPortal.js +++ b/routes/adminPortal.js @@ -3493,7 +3493,7 @@ router.post('/tickets/create', requireAdminSession, express.urlencoded({ extende const waNotify = require('../services/waNotifyService'); const cust = custId ? customerSvc.getCustomerById(custId) : null; const techSvc = require('../services/techService'); - const tech = techId ? techSvc.getTechnicianById(techId) : null; + const tech = techId ? techSvc.getTechById(techId) : null; const custName = cust ? cust.name : 'Tugas Umum / Maintenance Admin'; const custPhone = cust ? cust.phone : '-'; @@ -3554,7 +3554,7 @@ router.post('/tickets/:id/update', requireAdminSession, express.urlencoded({ ext if (settings.whatsapp_enabled) { const waNotify = require('../services/waNotifyService'); const techSvc = require('../services/techService'); - const newTech = techSvc.getTechnicianById(techId); + const newTech = techSvc.getTechById(techId); const updatedTicket = ticketSvc.getTicketById(ticketId); if (newTech && newTech.phone && updatedTicket) {