From 06fcde7298296950e78261aad752375a11ed71cd Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 09:57:10 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- api/services/file_service.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/services/file_service.py b/api/services/file_service.py index b0319ac06a..d2d7b6e7e7 100644 --- a/api/services/file_service.py +++ b/api/services/file_service.py @@ -179,9 +179,7 @@ class FileService: """ with self._session_maker(expire_on_commit=False) as session: upload_file = session.scalar( - select(UploadFile) - .where(UploadFile.id == file_id, UploadFile.tenant_id == tenant_id) - .limit(1) + select(UploadFile).where(UploadFile.id == file_id, UploadFile.tenant_id == tenant_id).limit(1) ) if not upload_file: