diff --git a/kdb-bot/src/bot_graphql/queries/user_joined_server_query.py b/kdb-bot/src/bot_graphql/queries/user_joined_server_query.py index ef9ebda2..775ecdfc 100644 --- a/kdb-bot/src/bot_graphql/queries/user_joined_server_query.py +++ b/kdb-bot/src/bot_graphql/queries/user_joined_server_query.py @@ -8,7 +8,6 @@ class UserJoinedServerQuery(DataQueryABC): self.set_field("id", self.resolve_id) self.set_field("user", self.resolve_user) - self.set_field("server", self.resolve_server) self.set_field("joined_on", self.resolve_joined_on) self.set_field("leaved_on", self.resolve_leaved_on) @@ -20,10 +19,6 @@ class UserJoinedServerQuery(DataQueryABC): def resolve_user(x: UserJoinedServer, *_): return x.user - @staticmethod - def resolve_server(x: UserJoinedServer, *_): - return x.user.server - @staticmethod def resolve_joined_on(x: UserJoinedServer, *_): return x.joined_on diff --git a/kdb-bot/src/bot_graphql/queries/user_joined_voice_channel_query.py b/kdb-bot/src/bot_graphql/queries/user_joined_voice_channel_query.py index 42270c90..46790973 100644 --- a/kdb-bot/src/bot_graphql/queries/user_joined_voice_channel_query.py +++ b/kdb-bot/src/bot_graphql/queries/user_joined_voice_channel_query.py @@ -14,7 +14,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC): self.set_field("channel_id", self.resolve_channel_id) self.set_field("channel_name", self.resolve_channel_name) self.set_field("user", self.resolve_user) - self.set_field("server", self.resolve_server) self.set_field("joined_on", self.resolve_joined_on) self.set_field("leaved_on", self.resolve_leaved_on) @@ -33,10 +32,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC): def resolve_user(x: UserJoinedVoiceChannel, *_): return x.user - @staticmethod - def resolve_server(x: UserJoinedVoiceChannel, *_): - return x.user.server - @staticmethod def resolve_joined_on(x: UserJoinedVoiceChannel, *_): return x.joined_on