From b77dd1b3922e0ad3ba1ab3da7c7942d30276b329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Tue, 21 May 2024 15:44:35 +0100 Subject: [PATCH] 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. --- database/3ds/update_user_mii.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/3ds/update_user_mii.go b/database/3ds/update_user_mii.go index 2decfde..db39a0c 100644 --- a/database/3ds/update_user_mii.go +++ b/database/3ds/update_user_mii.go @@ -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,