fix: make the default emotion happy

This commit is contained in:
Evan Carroll 2026-01-18 23:57:47 -06:00
parent 27b3658e1d
commit 1f922f8221

View file

@ -67,7 +67,7 @@ pub async fn ensure_active_avatar<'e>(
sqlx::query( sqlx::query(
r#" r#"
INSERT INTO auth.active_avatars (user_id, realm_id, avatar_id, current_emotion) INSERT INTO auth.active_avatars (user_id, realm_id, avatar_id, current_emotion)
SELECT $1, $2, id, 0 SELECT $1, $2, id, 1
FROM auth.avatars FROM auth.avatars
WHERE user_id = $1 AND slot_number = 0 WHERE user_id = $1 AND slot_number = 0
ON CONFLICT (user_id, realm_id) DO NOTHING ON CONFLICT (user_id, realm_id) DO NOTHING