From 653cb3a98bdacdd84420314e4af7189a4d5a80c7 Mon Sep 17 00:00:00 2001 From: curo1305 Date: Mon, 1 Jun 2026 14:26:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(06.2):=20CR-05=20remove=20UUID=20dash-strip?= =?UTF-8?q?ping=20in=20quota=20SQL=20=E2=80=94=20PostgreSQL=20expects=20da?= =?UTF-8?q?shed=20UUID=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api/documents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/documents.py b/backend/api/documents.py index 40cb68e..97ed572 100644 --- a/backend/api/documents.py +++ b/backend/api/documents.py @@ -345,7 +345,7 @@ async def confirm_upload( " AND (used_bytes + :delta) <= limit_bytes " "RETURNING used_bytes, limit_bytes" ), - {"delta": size, "uid": str(doc.user_id).replace("-", "")}, + {"delta": size, "uid": str(doc.user_id)}, ) row = result.fetchone() @@ -353,7 +353,7 @@ async def confirm_upload( # Quota exceeded — fetch current quota state for the 413 body quota_result = await session.execute( text("SELECT used_bytes, limit_bytes FROM quotas WHERE user_id = :uid"), - {"uid": str(doc.user_id).replace("-", "")}, + {"uid": str(doc.user_id)}, ) q = quota_result.fetchone() # Delete the pending Document row and best-effort remove the MinIO object