(@Args('userId') userId: string)
| 121 | @Mutation(() => User) |
| 122 | @UseGuards(JWTAuthGuard) |
| 123 | async updateUsername( |
| 124 | @GetUserIdFromToken() userId: string, |
| 125 | @Args('username') username: string, |
| 126 | ): Promise<User> { |
| 127 | return this.userService.updateUsername(userId, username); |
| 128 | } |
| 129 |