Skip to content

Commit

Permalink
Return null if avater is null
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Jan 11, 2025
1 parent 5d9f1fb commit d61e375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/libs/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def output(self, key, obj):

from models.account import Account

if isinstance(obj, Account):
if isinstance(obj, Account) and obj.avatar is not None:
return file_helpers.get_signed_file_url(obj.avatar)
return None

Expand Down

0 comments on commit d61e375

Please sign in to comment.