diff --git a/server/backend/infrastructure/db.py b/server/backend/infrastructure/db.py index 0f7b6d8..50f1dbe 100644 --- a/server/backend/infrastructure/db.py +++ b/server/backend/infrastructure/db.py @@ -50,6 +50,7 @@ def get_conn() -> Generator[connection, Any, None]: conn = pool.getconn() # type: ignore try: yield conn + conn.commit() # type: ignore except Exception: conn.rollback() # type: ignore raise