add resetUserPassword method to api gateway controller

This commit is contained in:
Eduardo Quiros 2022-08-23 22:09:47 -06:00
parent 842ec2d04d
commit 5b2be99a09
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 30 additions and 0 deletions

View File

@ -233,6 +233,36 @@ export class AppController {
return this.appService.deleteTenant(id, community_id, number_house);
}
@Put('user/resetUserPassword/:id')
resetUserPassword(@Param('id') id: string,
@Body('dni') dni: string,
@Body('name') name: string,
@Body('last_name') last_name: string,
@Body('email') email: string,
@Body('phone') phone: number,
@Body('password') password: string,
@Body('user_type') user_type: string,
@Body('status') status: string,
@Body('date_entry') date_entry: Date,
@Body('community_id') community_id: string,
@Body('number_house') number_house: string,
) {
return this.appService.updateUser(
id,
dni,
name,
last_name,
email,
phone,
password,
user_type,
status,
date_entry,
community_id,
number_house,
);
}
@Post('user/changeStatus')
changeStatusUser(
@Body('id') pId: string,