From 6fa08ea8286e61ceba156523da1e7c5229788b3d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 21 Aug 2023 16:25:42 +0200 Subject: [PATCH] Fixed minor bugs #1.1.0 --- kdb-bot/src/bot_data/model/user.py | 4 ++-- kdb-web/src/app/models/graphql/queries.model.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/bot_data/model/user.py b/kdb-bot/src/bot_data/model/user.py index ff654ae3..57e1cc67 100644 --- a/kdb-bot/src/bot_data/model/user.py +++ b/kdb-bot/src/bot_data/model/user.py @@ -15,8 +15,8 @@ class User(TableABC): self, dc_id: int, xp: int, - message_count: int, reaction_count: int, + message_count: int, server: Optional[Server], created_at: datetime = None, modified_at: datetime = None, @@ -25,8 +25,8 @@ class User(TableABC): self._user_id = id self._discord_id = dc_id self._xp = xp - self._message_count = message_count self._reaction_count = reaction_count + self._message_count = message_count self._server = server TableABC.__init__(self) diff --git a/kdb-web/src/app/models/graphql/queries.model.ts b/kdb-web/src/app/models/graphql/queries.model.ts index 28729570..bd83b01d 100644 --- a/kdb-web/src/app/models/graphql/queries.model.ts +++ b/kdb-web/src/app/models/graphql/queries.model.ts @@ -266,6 +266,9 @@ export class Queries { name createdAt } + + createdAt + modifiedAt } } }