mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
corrected typescript type (not graphql)
This commit is contained in:
parent
9540ab3208
commit
472391a8d2
@ -276,7 +276,7 @@ export class UserResolver {
|
||||
}
|
||||
|
||||
@Query(() => Boolean)
|
||||
async checkUsername(@Args() { username }: CheckUsernameArgs): Promise<Boolean> {
|
||||
async checkUsername(@Args() { username }: CheckUsernameArgs): Promise<boolean> {
|
||||
// Username empty?
|
||||
if (username === '') {
|
||||
throw new Error('Username must be set.')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user