From 373012be147d812efeae85a608bfb11d8bc119fa Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 1 Aug 2022 01:23:45 -0600 Subject: [PATCH] arreglar endpoint --- .../src/common_areas/common_areas.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servicio-areas-comunes/src/common_areas/common_areas.controller.ts b/servicio-areas-comunes/src/common_areas/common_areas.controller.ts index 08d2866a..b4374c7d 100644 --- a/servicio-areas-comunes/src/common_areas/common_areas.controller.ts +++ b/servicio-areas-comunes/src/common_areas/common_areas.controller.ts @@ -30,7 +30,7 @@ export class CommonAreasController { @MessagePattern({ cmd: 'removeCommonArea' }) remove(@Payload() id: string) { - let _id = id['_id']; + let _id = id['id']; return this.commonAreasService.remove(_id); }