ahmetuysal / nest-hackathon-starter

Hackathon starter project for NestJS. Includes Prisma, email verification, Passport-JWT authentication, Swagger and more
MIT License
402 stars 50 forks source link

Error in `auth.controller` #9

Closed jameskentTX closed 3 years ago

jameskentTX commented 3 years ago

There is:

  @Get('change-email')
  @HttpCode(HttpStatus.OK)
  async changeEmail(@Param('token') token: string): Promise<void> {
    await this.authService.changeEmail(token);
  }

Should be:

  @Get('change-email')
  @HttpCode(HttpStatus.OK)
  async changeEmail(@Query('token') token: string): Promise<void> {
    await this.authService.changeEmail(token);
  }
ahmetuysal commented 3 years ago

Thank you!