uptime-kuma/server/routers
saber04414 d01cf6e375 fix: Send webhook notification when monitor transitions from PENDING to UP after being DOWN
Fixes #6025

When a monitor transitions DOWN → PENDING → UP, the UP webhook notification
was not being sent because PENDING → UP transitions were marked as 'not important'
for notifications.

This fix:
- Adds getLastNonPendingStatus() helper to check if monitor was DOWN before PENDING
- Modifies isImportantForNotification() to check history when PENDING → UP transition occurs
- If monitor was DOWN before PENDING, PENDING → UP is now treated as important for notifications
- Maintains backward compatibility: UP → PENDING → UP still doesn't trigger notifications

Tested with Docker container monitor and HTTP monitor scenarios.
2026-01-13 11:45:12 +02:00
..
api-router.js fix: Send webhook notification when monitor transitions from PENDING to UP after being DOWN 2026-01-13 11:45:12 +02:00
status-page-router.js chore: enable formatting over the entire codebase in CI (#6655) 2026-01-09 02:10:36 +01:00