refactor: remove db.commit() from business services, callers use UnitOfWork (Tier 3)
This commit is contained in:
@@ -39,8 +39,7 @@ def create_worklog(
|
||||
)
|
||||
wl.integrity_hash = _compute_hash(wl)
|
||||
db.add(wl)
|
||||
db.commit()
|
||||
db.refresh(wl)
|
||||
# Does not commit; caller (router) uses UnitOfWork.
|
||||
return wl
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user