refactor: remove db.commit() from audit_service.log_action, all callers use UoW
This commit is contained in:
@@ -278,4 +278,5 @@ def sync(db: Session) -> dict:
|
||||
logger.info("CALDERA import complete — %s", summary)
|
||||
log_action(db, user_id=None, action="import_caldera",
|
||||
entity_type="test_template", entity_id=None, details=summary)
|
||||
db.commit()
|
||||
return summary
|
||||
|
||||
Reference in New Issue
Block a user