Skip to content

Commit c205bd4

Browse files
committed
chore: roll back
1 parent 00f98d5 commit c205bd4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/app/controller/provider/provider_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ async def invalidate(id: int, session: Session = Depends(session), auth: Auth =
155155
logger.info("Provider invalidated", extra={"user_id": user_id, "provider_id": id})
156156
return {"success": True}
157157
except Exception as e:
158+
session.rollback()
158159
logger.error(
159160
"Provider invalidation failed", extra={"user_id": user_id, "provider_id": id, "error": str(e)}, exc_info=True
160161
)

0 commit comments

Comments
 (0)