Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix membership missing unique #57

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

Syriiin
Copy link
Owner

@Syriiin Syriiin commented May 31, 2024

Why?

Should have had this all along.
Somehow a couple memberships managed to be duplicated by race conditions.

Changes

  • Add unique constraint for memberships
  • Remove Membership.recalculate() since it was actually incorrect
  • Update recalculate command to use recalculate_membership service

@Syriiin Syriiin merged commit f456758 into master May 31, 2024
3 checks passed
@Syriiin Syriiin deleted the fix-membership-missing-unique branch May 31, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant