Skip to content

Commit

Permalink
fix: empty author field if no full name
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Nov 22, 2023
1 parent 5acc2ef commit e3720f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/file/use_cases/add_file_use_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def add_file_use_case(data_source_id: str, file_id: str, file: UploadFile,
"_id": file_id,
"type": SIMOS.FILE.value,
"name": file.filename.split(".")[0],
"author": user.full_name,
"author": user.full_name if user.full_name else "",
"date": f"{datetime.now()}",
"size": file_size,
"filetype": file.content_type,
Expand Down

0 comments on commit e3720f1

Please sign in to comment.