Files
lifehackerhansol 31575ce893 ExtrasDatabaseManager: handle adding the other console's FC
It is supposed to be possible that one can have both a 3DS FC and a
Switch FC. However, in the current code, both additions are trying to
insert a new row into the table.

What thus happened is that, in an event one has added a 3DS FC, and
tries to add a Switch FC, or vice versa, a UniqueViolationError happens
as we are trying to insert a new row for a user that already has a row.

Fix this by checking whether a row already exists for this user, and
update or insert depending on that.

This resolves #1362.
2025-10-05 14:59:48 -07:00
..
2025-08-26 21:47:24 -03:00
2025-08-28 21:42:31 -03:00