From 4cd8e2fa8b455a97638a58cb6b81ad774b39a697 Mon Sep 17 00:00:00 2001 From: hzmi Date: Tue, 20 Feb 2024 15:04:22 +0000 Subject: [PATCH] fix(GuildCreateListener): fix voiceState insert Co-authored-by: KagChi Co-authored-by: Vann --- .../src/Listeners/Caches/Guilds/GuildCreateListener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts b/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts index 14f8e818..f64f7983 100644 --- a/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts +++ b/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts @@ -244,7 +244,7 @@ export class GuildCreateListener extends Listener { })) ) .onConflictDoUpdate({ - target: voiceStates.memberId, + target: [voiceStates.memberId, voiceStates.guildId], set: { channelId: sql`EXCLUDED.channel_id`, sessionId: sql`EXCLUDED.session_id`,