fix(database/3ds): Fix INSERT query for UpdateUserMii

Although the UPDATE section of the query was updated properly, the
INSERT ection was unmodified, which causes type conflicts when trying to
update the user's Mii. Update the INSERT query properly.
This commit is contained in:
Daniel López Guimaraes 2024-05-21 15:44:35 +01:00
parent 7b6224e80e
commit b77dd1b392
No known key found for this signature in database
GPG Key ID: 6AC74DE3DEF050E0

View File

@ -9,8 +9,8 @@ import (
// UpdateUserMii updates a user's mii
func UpdateUserMii(pid uint32, mii *friends_3ds_types.Mii) error {
_, err := database.Manager.Exec(`
INSERT INTO "3ds".user_data (pid, mii_name, mii_data, mii_changed)
VALUES ($1, $2, $3, $4)
INSERT INTO "3ds".user_data (pid, mii_name, mii_profanity, mii_character_set, mii_data, mii_changed)
VALUES ($1, $2, $3, $4, $5, $6)
ON CONFLICT (pid)
DO UPDATE SET
mii_name = $2,