Skip to content

Commit

Permalink
set default values dto file response
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Barbosa committed Jan 4, 2024
1 parent 075a8b0 commit fba579e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/task_managers/file_database/s3_file_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def add_file(self, file) -> FileResponseDTO:
region_name=settings.AWS_S3_REGION_NAME
)
file_name = file.name + str(uuid.uuid4())
response = FileResponseDTO()
response = FileResponseDTO(err="", file_url="", status=1)
try:
s3_client.upload_fileobj(file, settings.AWS_STORAGE_BUCKET_NAME, file_name)
response.status = 0
Expand Down

0 comments on commit fba579e

Please sign in to comment.