Account merge ledger: link step refuses a frozen account (test), drop the redundant sync guard, accept a deadlock victim as the racing commit's loser

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Heimdall 2026-11-14 04:13:54 +00:00
commit aa348d3b43
4 changed files with 37 additions and 7 deletions

View file

@ -67,11 +67,6 @@ public sealed class MembershipSynchronizationService(
dbContext.UserAccounts.Add(userAccount);
}
else if (userAccount.Membership is { IsMerged: true })
{
// A folded account is terminal: sign-in rewrites nothing on it (the actor gate already makes it act as nobody).
return;
}
else
{
userAccount.GitHubLogin = gitHubLogin;