From 09a4ace8670ec0974b6cd581050cd9e16c27964d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 21 Dec 2021 18:47:58 +0100 Subject: [PATCH] Fixed dazabase assignment bug --- src/gismo_data/model/user_joined_voice_channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gismo_data/model/user_joined_voice_channel.py b/src/gismo_data/model/user_joined_voice_channel.py index 83729a3..8d29d04 100644 --- a/src/gismo_data/model/user_joined_voice_channel.py +++ b/src/gismo_data/model/user_joined_voice_channel.py @@ -110,12 +110,12 @@ class UserJoinedVoiceChannel(TableABC): UPDATE `UserJoinedVoiceChannel` SET `LeavedOn` = '{self._leaved_on}', `LastModifiedAt` = '{self._modified_at}' - WHERE `UserId` = {self._user.user_id}; + WHERE `JoinId` = {self._join_id}; """) @property def delete_string(self) -> str: return str(f""" DELETE FROM `UserJoinedVoiceChannel` - WHERE `Id` = {self._join_id}; + WHERE `JoinId` = {self._join_id}; """)