mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove language from mutation
This commit is contained in:
parent
2954c61892
commit
1f13613049
@ -33,11 +33,8 @@ export class KlicktippResolver {
|
|||||||
|
|
||||||
@Authorized([RIGHTS.SUBSCRIBE_NEWSLETTER])
|
@Authorized([RIGHTS.SUBSCRIBE_NEWSLETTER])
|
||||||
@Mutation(() => Boolean)
|
@Mutation(() => Boolean)
|
||||||
async subscribeNewsletter(
|
async subscribeNewsletter(@Ctx() context: Context): Promise<boolean> {
|
||||||
@Arg('language') language: string,
|
|
||||||
@Ctx() context: Context,
|
|
||||||
): Promise<boolean> {
|
|
||||||
const user = getUser(context)
|
const user = getUser(context)
|
||||||
return await klicktippSignIn(user.emailContact.email, language)
|
return await klicktippSignIn(user.emailContact.email, user.language)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user