From 859c420067295ab4faf29a5db540acd85c7dad7b Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 1 Aug 2022 01:08:27 -0600 Subject: [PATCH] add remove common area en api service --- api-gateway/src/app.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api-gateway/src/app.service.ts b/api-gateway/src/app.service.ts index 426764c0..169e68e6 100644 --- a/api-gateway/src/app.service.ts +++ b/api-gateway/src/app.service.ts @@ -258,6 +258,16 @@ export class AppService { .pipe(map((message: string) => ({ message }))); } + + //GET parameter from API + removeCommonArea(paramCommonAreaId: string) { + const pattern = { cmd: 'removeCommonArea' }; + const payload = { id: paramCommonAreaId }; + return this.clientCommonAreaApp + .send(pattern, payload) + .pipe(map((message: string) => ({ message }))); + } + // ====================== GUESTS =============================== //POST parameter from API