Fixed deprecated API request
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-03-03 18:51:41 +01:00
parent 03223f9391
commit f4346bbac6
2 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,8 @@ export enum UserRole {
} }
export interface User extends Node { export interface User extends Node {
firstname: string; firstName: string;
lastname: string; lastName: string;
name: string; name: string;
username: string; username: string;
email: string; email: string;

View file

@ -30,7 +30,7 @@
const meStore = operationStore<Data>(gql` const meStore = operationStore<Data>(gql`
query Me { query Me {
me { me {
firstname firstName
role role
admin admin
student { student {
@ -129,7 +129,7 @@
{:else if $meStore.fetching} {:else if $meStore.fetching}
<p>Laden...</p> <p>Laden...</p>
{:else} {:else}
<h1>Hey {$meStore.data.me.firstname}!</h1> <h1>Hey {$meStore.data.me.firstName}!</h1>
<hr /> <hr />
{#if $meStore.data.me.role === UserRole.TEACHER} {#if $meStore.data.me.role === UserRole.TEACHER}