mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 21:28:25 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
6ef7685f5c
commit
06fcde7298
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user