Skip to content

Commit

Permalink
fix: Handle case where community may be None in Action model serializ…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
abdullai-t committed Dec 3, 2024
1 parent 14a47f6 commit e25bd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ def info(self):
"community":{
"id": self.community.id,
"name": self.community.name,
},
} if self.community else None,
"image": get_json_if_not_none(self.image),
}

Expand Down

0 comments on commit e25bd49

Please sign in to comment.