fix: flush task before recording action (task_id was None)
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s

This commit is contained in:
markov 2026-02-25 11:05:40 +01:00
parent 39dde0e2d8
commit aedbe583c8

View File

@ -319,6 +319,7 @@ async def create_task(
watcher_ids=[assignee_id] if assignee_id else [],
)
db.add(task)
await db.flush() # get task.id before recording action
await _record_action(db, task, current_member, TaskActionType.CREATED)