From 980bf99f396f4ab55865f6997f0dc5937a3b1d3a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 14 Aug 2023 19:12:37 +0200 Subject: [PATCH] Fixed queries #295 --- .../src/app/models/graphql/queries.model.ts | 61 +++++++------------ 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/kdb-web/src/app/models/graphql/queries.model.ts b/kdb-web/src/app/models/graphql/queries.model.ts index 14f99354..4f6856b4 100644 --- a/kdb-web/src/app/models/graphql/queries.model.ts +++ b/kdb-web/src/app/models/graphql/queries.model.ts @@ -1,22 +1,5 @@ export class Queries { - static technicianConfigQuery = ` - query technicianConfigQuery { - technicianConfig { - id - helpCommandReferenceUrl - waitForRestart - waitForShutdown - cacheMaxMessages - pingURLs - technicianIds - - createdAt - modifiedAt - } - } - `; - static guildsQuery = ` query GuildsQuery($id: ID) { guilds(filter: {id: $id}) { @@ -382,31 +365,31 @@ export class Queries { static serverConfigQuery = ` query serverConfigQuery($serverId: ID) { servers(filter: { id: $serverId }) { - name - config { - id - messageDeleteTimer - notificationChatId - maxVoiceStateHours - xpPerMessage - xpPerReaction - maxMessageXpPerHour - xpPerOntimeHour - xpPerEventParticipation - xpPerAchievement - afkCommandChannelId - helpVoiceChannelId - teamChannelId - loginMessageChannelId - afkChannelIds - moderatorRoleIds - adminRoleIds - - server { + name + config { id + messageDeleteTimer + notificationChatId + maxVoiceStateHours + xpPerMessage + xpPerReaction + maxMessageXpPerHour + xpPerOntimeHour + xpPerEventParticipation + xpPerAchievement + afkCommandChannelId + helpVoiceChannelId + teamChannelId + loginMessageChannelId + afkChannelIds + moderatorRoleIds + adminRoleIds + + server { + id + } } } } - } `; }