fix: update device name handling in notification service to ensure fallback value is used

This commit is contained in:
2026-04-30 15:58:53 +07:00
parent b811accc48
commit bca65fe090

View File

@@ -393,7 +393,7 @@ class NotifikasiWaService {
const now = new Date();
const year = now.getFullYear();
const reminderAt = new Date(deviceReminder[0].reminder_at);
const deviceName = new Date(deviceReminder[0].device_name);
const deviceName = deviceReminder[0].device_name ?? '-';
// 🔹 ambil bulan & jam dalam timezone server
const nowParts = new Intl.DateTimeFormat('en-US', {