fix api update user

This commit is contained in:
Mariela 2022-08-31 12:27:10 -06:00
parent 1784dd4bbb
commit a6d68abda5
2 changed files with 2 additions and 27 deletions

View File

@ -149,12 +149,7 @@ export class AppController {
@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,
@ -163,12 +158,7 @@ export class AppController {
last_name,
email,
phone,
password,
user_type,
status,
date_entry,
community_id,
number_house,
community_id
);
}
@ -255,12 +245,7 @@ export class AppController {
last_name,
email,
phone,
password,
user_type,
status,
date_entry,
community_id,
number_house,
password
);
}

View File

@ -94,12 +94,7 @@ export class AppService {
last_name: string,
email: string,
phone: number,
password: string,
user_type: string,
status: string,
date_entry: Date,
community_id: string,
number_house: string,
) {
const pattern = { cmd: 'updateUser' };
const payload = {
@ -109,12 +104,7 @@ export class AppService {
last_name: last_name,
email: email,
phone: phone,
password: password,
user_type: user_type,
status: status,
date_entry: date_entry,
community_id: community_id,
number_house: number_house,
};
return this.clientUserApp
.send<string>(pattern, payload)