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