fix CI/CD Error

This commit is contained in:
Elysia
2026-03-09 13:13:39 +08:00
parent 106b20cdbf
commit b43ee62947
6 changed files with 155 additions and 2 deletions

View File

@@ -647,6 +647,11 @@ func (s *AuthService) LoginOrRegisterOAuthWithTokenPair(ctx context.Context, ema
} else {
user = newUser
s.assignDefaultSubscriptions(ctx, user.ID)
if invitationRedeemCode != nil {
if err := s.redeemRepo.Use(ctx, invitationRedeemCode.ID, user.ID); err != nil {
return nil, nil, ErrInvitationCodeInvalid
}
}
}
}
} else {