Fix #6: Remove useless _record_action in delete_task (CASCADE deletes it)
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
901f54f790
commit
3228b4c290
@ -393,8 +393,7 @@ async def delete_task(
|
|||||||
):
|
):
|
||||||
task = await _get_task(task_id, db)
|
task = await _get_task(task_id, db)
|
||||||
project_id = str(task.project_id)
|
project_id = str(task.project_id)
|
||||||
await _record_action(db, task, current_member, TaskActionType.DELETED)
|
# Note: _record_action not called — CASCADE would delete it with the task anyway
|
||||||
await db.commit()
|
|
||||||
await db.delete(task)
|
await db.delete(task)
|
||||||
await db.commit()
|
await db.commit()
|
||||||
from ..ws.manager import manager
|
from ..ws.manager import manager
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user