This commit is contained in:
parent
951031592c
commit
079e439bf0
|
@ -120,7 +120,29 @@ export class AppService {
|
||||||
.send<string>(pattern, payload)
|
.send<string>(pattern, payload)
|
||||||
.pipe(map((message: string) => ({ message })));
|
.pipe(map((message: string) => ({ message })));
|
||||||
}
|
}
|
||||||
|
updateAdminCommunity(
|
||||||
|
_id: string,
|
||||||
|
dni: string,
|
||||||
|
name: string,
|
||||||
|
last_name: string,
|
||||||
|
email: string,
|
||||||
|
phone: number,
|
||||||
|
community_id: string,
|
||||||
|
) {
|
||||||
|
const pattern = { cmd: 'updateAdminCommunity' };
|
||||||
|
const payload = {
|
||||||
|
id: _id,
|
||||||
|
dni: dni,
|
||||||
|
name: name,
|
||||||
|
last_name: last_name,
|
||||||
|
email: email,
|
||||||
|
phone: phone,
|
||||||
|
community_id: community_id,
|
||||||
|
};
|
||||||
|
return this.clientUserApp
|
||||||
|
.send<string>(pattern, payload)
|
||||||
|
.pipe(map((message: string) => ({ message })));
|
||||||
|
}
|
||||||
//POST parameter from API
|
//POST parameter from API
|
||||||
createAdminSystem(dni: string, name: string, last_name: string, email: string, phone: number
|
createAdminSystem(dni: string, name: string, last_name: string, email: string, phone: number
|
||||||
, user_type: string, status: string, date_entry: Date) {
|
, user_type: string, status: string, date_entry: Date) {
|
||||||
|
|
Loading…
Reference in New Issue