fix: files data missed for message (#4512)

This commit is contained in:
Matri 2024-05-19 22:42:52 +08:00 committed by GitHub
parent 1cca100a48
commit a10c2ccd41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(