Skip to content

Commit

Permalink
Update backend/src/modules/auth/controller/auth.controller.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Rui Silva <ruipedrosilva.1998@gmail.com>
  • Loading branch information
r-dmatos and rpvsilva authored Apr 27, 2022
1 parent 8c361fb commit de59615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/modules/auth/controller/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export default class AuthController {
}

@Post('recoverPassword')
async forgot(@Body() emailDto: EmailParam) {
const { email } = emailDto;
forgot(@Body() { email }: EmailParam) {
return this.createResetTokenAuthApp.create(email);
}

Expand Down

0 comments on commit de59615

Please sign in to comment.