Skip to content

Commit

Permalink
Django: Fix: Improve db coherence on user sync issues
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Nov 6, 2024
1 parent fa4c3fe commit 9be9c96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def sync_kc_user(self, kc_user, is_superuser=False, delete=False):

user, created = User.objects.get_or_create(username=kc_user["username"])

member = Member.objects.get_or_create(user=user)
member, created = Member.objects.get_or_create(user=user)
member.kc_id = kc_user["id"]
member.save()
user = self._map_kc_user(user, kc_user, is_superuser, delete)
Expand Down

0 comments on commit 9be9c96

Please sign in to comment.