fix: return null url when upload local file (#17752)

Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id>
pull/17854/head
kautsar_masuara 10 months ago committed by GitHub
parent 9d20561af4
commit 0e0220bdbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -92,6 +92,11 @@ class FileService:
db.session.add(upload_file)
db.session.commit()
if not upload_file.source_url:
upload_file.source_url = file_helpers.get_signed_file_url(upload_file_id=upload_file.id)
db.session.add(upload_file)
db.session.commit()
return upload_file
@staticmethod

Loading…
Cancel
Save