Commit Graph

2 Commits

Author SHA1 Message Date
autofix-ci[bot]
d35f3e8a7f
[autofix.ci] apply automated fixes 2026-01-13 17:13:48 +00:00
saber04414
f0c17ab9e8 Refactor isImportantForNotification: remove DB dependency and add tests
- Make function synchronous and remove database dependency
- Accept lastNonPendingStatus as parameter instead of monitorID
- Simplify function logic for better testability
- Update call sites to fetch lastNonPendingStatus only when needed
- Add comprehensive test suite with 17 test cases covering all status transitions

Addresses code review feedback about function complexity and testability
2026-01-13 19:12:17 +02:00