From 611600c2d89de81dd5868942c38e9b06d2115485 Mon Sep 17 00:00:00 2001 From: Alexis Fourmaux Date: Wed, 13 May 2026 16:24:06 +0200 Subject: [PATCH] fix: add commit to db transactions --- server/backend/infrastructure/db.py | 1 + 1 file changed, 1 insertion(+) 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