Merge pull request 'fix: update device name handling in notification service to ensure fallback value is used' (#51) from wisdom into main

Reviewed-on: #51
This commit is contained in:
2026-04-30 08:59:25 +00:00

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', {