diff --git a/kdb-bot/src/bot_data/model/user.py b/kdb-bot/src/bot_data/model/user.py index 12c73f51..c2b3d6f3 100644 --- a/kdb-bot/src/bot_data/model/user.py +++ b/kdb-bot/src/bot_data/model/user.py @@ -140,7 +140,7 @@ class User(TableABC): ) VALUES ( {self._discord_id}, {self._xp}, - '{"NULL" if self._minecraft_id is None else self._minecraft_id}', + '{self._minecraft_id}', {self._server.id}, '{self._created_at}', '{self._modified_at}' @@ -154,7 +154,7 @@ class User(TableABC): f""" UPDATE `Users` SET `XP` = {self._xp}, - `MinecraftId` = '{"NULL" if self._minecraft_id is None else self._minecraft_id}', + `MinecraftId` = '{self._minecraft_id}', `LastModifiedAt` = '{self._modified_at}' WHERE `UserId` = {self._user_id}; """ diff --git a/kdb-web/src/app/models/graphql/queries.model.ts b/kdb-web/src/app/models/graphql/queries.model.ts index 44756d56..e0a28f29 100644 --- a/kdb-web/src/app/models/graphql/queries.model.ts +++ b/kdb-web/src/app/models/graphql/queries.model.ts @@ -87,6 +87,7 @@ export class Queries { name xp ontime + minecraftId level { id name diff --git a/kdb-web/src/app/modules/view/server/profile/profile.component.html b/kdb-web/src/app/modules/view/server/profile/profile.component.html index 2dda2775..1fdf1ec7 100644 --- a/kdb-web/src/app/modules/view/server/profile/profile.component.html +++ b/kdb-web/src/app/modules/view/server/profile/profile.component.html @@ -41,6 +41,13 @@ +