Skip to content

The open-source AI voice studio. Clone, dictate, create.

docs(history): fix stale comment about rollback on delete

jamiepine5803aaaa9190
diff --git a/backend/services/history.py b/backend/services/history.py
index 448381b5..809a556b 100644
--- a/backend/services/history.py
+++ b/backend/services/history.py
@@ -295,8 +295,8 @@ async def delete_generation(
if not generation:
return False
- # Delete all version files and records; commit together with the
- # generation row below so an unlink failure rolls everything back.
+ # Delete all version files and records; the rows are committed together
+ # with the generation row below (one commit for the whole delete).
_delete_generation_children(generation_id, db, commit=False)
# Delete main audio file (if not already removed by version cleanup)