Преглед на файлове
fix: return null url when upload local file (#17752)
Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id>
tags/1.3.0
kautsar_masuara
преди 6 месеца
родител
ревизия
0e0220bdbf
No account linked to committer's email address
|
|
|
@@ -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 |