Refactored to avoid duplicate queries: - One SQL query gets users with flags for which notification types they want - One task query gets all active tasks for those users - Single loop processes tasks, using map lookup for user preferences Previously called processSmartRemindersForType twice (due_soon, overdue), each doing separate user query + task query. Users with both types at same hour had their tasks queried twice. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 KiB
26 KiB