fix(watcher): getDifference needs a date, and only a completed drain counts
This commit is contained in:
1 parent
b0ed041c2e
commit
fc4758aa0b
3 files changed
+38
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user