fix: typo
This commit is contained in:
@@ -43,7 +43,7 @@ export class UserResolver {
|
|||||||
@UseGuards(GqlAuthGuard)
|
@UseGuards(GqlAuthGuard)
|
||||||
async updateUser(
|
async updateUser(
|
||||||
@GqlUser() user: User,
|
@GqlUser() user: User,
|
||||||
@Args('user') userInput: UpdateUserInput,
|
@Args('args') userInput: UpdateUserInput,
|
||||||
): Promise<User> {
|
): Promise<User> {
|
||||||
const updatedUser = await this.userService.updateUser(user, userInput);
|
const updatedUser = await this.userService.updateUser(user, userInput);
|
||||||
if (E.isLeft(updatedUser)) throwErr(updatedUser.left);
|
if (E.isLeft(updatedUser)) throwErr(updatedUser.left);
|
||||||
|
|||||||
Reference in New Issue
Block a user