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

[Bot Issue] fcregister with an FC already registered causes key error #1362

Open
lifehackerhansol opened this issue Oct 2, 2024 · 0 comments

Comments

@lifehackerhansol
Copy link
Contributor

Issue Description

The code seems to suggest that one may have both a 3DS and a Switch friend code, but this is not the case; adding a Switch FC after 3DS results in:

kurisu-kurisu-1  | asyncpg.exceptions.UniqueViolationError: duplicate key value violates unique constraint "friendcodes_pkey"
kurisu-kurisu-1  | DETAIL:  Key (user_id)=(<UID>) already exists.

This error is ignored entirely by the bot and sends a message that the second FC has been added when it has not in fact been added, which is further proven when fcquery is called and only one FC is returned.

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

No branches or pull requests

1 participant