mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-15 11:35:47 +02:00
Fix mongo connection
This commit is contained in:
parent
9abe5dd519
commit
52b452c85a
16 changed files with 53 additions and 38 deletions
|
|
@ -20,7 +20,7 @@ def timed_task(task: enums.TaskType):
|
|||
async def _wrapper(tasks_cog: Tasks, *args, **kwargs):
|
||||
await func(tasks_cog, *args, **kwargs)
|
||||
|
||||
async with tasks_cog.client.db_session as session:
|
||||
async with tasks_cog.client.postgres_session as session:
|
||||
await set_last_task_execution_time(session, task)
|
||||
|
||||
return _wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue