From 0f983cb182ea54bc89299efa42887c7a39aac78f Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 1 Aug 2022 00:33:48 -0600 Subject: [PATCH] =?UTF-8?q?agregar=20funci=C3=B3n=20"encontrar=20por=20com?= =?UTF-8?q?unidad"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/common_areas/common_areas.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servicio-areas-comunes/src/common_areas/common_areas.service.ts b/servicio-areas-comunes/src/common_areas/common_areas.service.ts index a632a829..5074ed35 100644 --- a/servicio-areas-comunes/src/common_areas/common_areas.service.ts +++ b/servicio-areas-comunes/src/common_areas/common_areas.service.ts @@ -34,4 +34,9 @@ export class CommonAreasService { async remove(id: string) { return this.commonAreaModel.findByIdAndRemove({ _id: id }).exec(); } + + async findByCommunity(community_id: string): Promise { + return this.commonAreaModel.find({ community_id: community_id }).exec(); + } + }