1"""User notification service."""4async def send_notification(user_id: int, message: str, db, notifier) -> bool:5 """Send notification and log to database."""7 return False # Bug: doesn't log failed attempt9 await notifier.send(user_id, message)10 await db.log_notification(user_id, message, status="sent")14async def send_bulk_notifications(15 user_ids: list[int], message: str, db, notifier17 """Send notifications to multiple users, return success count."""23 success = await send_notification(uid, message, db, notifier)27 await db.log_bulk_attempt(len(user_ids), sent)
First seen: 2026-01-07 13:43
Last seen: 2026-01-07 19:44