Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
chore: Fix delete family member

See merge request locker/api-core!390
  • Loading branch information
phuongntt-cystack committed Mar 7, 2024
2 parents b3abf89 + 0c4aab8 commit 6f268cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locker_server/core/services/family_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def destroy_family_member(self, user_id: int, family_member_id: int):
)
if not family_member:
raise UserPlanFamilyDoesNotExistException
if family_member.user.user_id == user_id:
if family_member.user is not None and family_member.user.user_id == user_id:
raise UserPlanFamilyDoesNotExistException
# Downgrade the plan of the member user
family_user_id, family_email = self.user_plan_repository.delete_family_member(family_member_id=family_member_id)
Expand Down

0 comments on commit 6f268cb

Please sign in to comment.