mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
fix: files data missed for message (#4512)
This commit is contained in:
parent
1cca100a48
commit
a10c2ccd41
|
@ -797,7 +797,7 @@ class Message(db.Model):
|
||||||
if message_file.transfer_method == 'local_file':
|
if message_file.transfer_method == 'local_file':
|
||||||
upload_file = (db.session.query(UploadFile)
|
upload_file = (db.session.query(UploadFile)
|
||||||
.filter(
|
.filter(
|
||||||
UploadFile.id == message_file.related_id
|
UploadFile.id == message_file.upload_file_id
|
||||||
).first())
|
).first())
|
||||||
|
|
||||||
url = UploadFileParser.get_image_data(
|
url = UploadFileParser.get_image_data(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user