correct mutation authenticate

This commit is contained in:
Claus-Peter Huebner 2023-10-26 00:05:20 +02:00
parent 92e6e88fe2
commit 6f321cb9dc
2 changed files with 2 additions and 4 deletions

View File

@ -57,7 +57,7 @@ export class AuthenticationClient {
const { data } = await this.client.rawRequest<any>(authenticate, { args })
logger.debug('Authentication: after authenticate: data:', data)
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const authUuid: string = data?.authenticate.uuid
const authUuid: string = data?.authenticate
if (authUuid) {
logger.debug('Authentication: received authenticated uuid', authUuid)
return authUuid

View File

@ -2,8 +2,6 @@ import { gql } from 'graphql-request'
export const authenticate = gql`
mutation ($args: AuthenticationArgs!) {
authenticate(data: $args) {
uuid
}
authenticate(data: $args)
}
`