Fix #6: Remove useless _record_action in delete_task (CASCADE deletes it)
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s

This commit is contained in:
markov 2026-02-26 15:13:10 +01:00
parent 901f54f790
commit 3228b4c290

View File

@ -393,8 +393,7 @@ async def delete_task(
):
task = await _get_task(task_id, db)
project_id = str(task.project_id)
await _record_action(db, task, current_member, TaskActionType.DELETED)
await db.commit()
# Note: _record_action not called — CASCADE would delete it with the task anyway
await db.delete(task)
await db.commit()
from ..ws.manager import manager