fix: return null url when upload local file (#17752)
Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id>
This commit is contained in:
parent
9d20561af4
commit
0e0220bdbf
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue