fix(watcher): getDifference needs a date, and only a completed drain counts

This commit is contained in:
hh committed 2026-09-18 18:42:38 +02:00
1 parent b0ed041c2e
commit fc4758aa0b
3 files changed
+38 -5

No files matched your search

+2
View File
@@ -185,6 +185,8 @@ class BotRegistry:
async def _backlog(self, client: PyroClient, bot_id: int, account_id: int) -> None:
stored = await drain_backlog(client, account_id)
if stored is None:
return
await bots.mark_backfilled(self._pool, bot_id)
if stored:
await accounts.notify_accounts_changed(self._pool)