Преглед на файлове

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
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5
    0
      api/services/file_service.py

+ 5
- 0
api/services/file_service.py Целия файл

@@ -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…
Отказ
Запис