fix: add commit to db transactions

This commit is contained in:
Alexis Fourmaux 2026-05-13 16:24:06 +02:00
parent 1272cdfc81
commit 611600c2d8

View file

@ -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