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(); + } + }