fix: flush task before recording action (task_id was None)
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s
This commit is contained in:
parent
39dde0e2d8
commit
aedbe583c8
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user