mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 12:59:18 +08:00
chore: remove comment
This commit is contained in:
parent
07a4720b68
commit
c75d1f987e
@ -112,8 +112,6 @@ class FileService:
|
||||
session.add(upload_file)
|
||||
session.commit()
|
||||
|
||||
# The `UploadFile` ID is generated within its constructor, so flushing to retrieve the ID is unnecessary.
|
||||
# We can directly generate the `source_url` here before committing.
|
||||
if not upload_file.source_url:
|
||||
upload_file.source_url = file_helpers.get_signed_file_url(upload_file_id=upload_file.id)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user