diff --git a/src/middleware/CheckBuildingTypeMiddleware.ts b/src/middleware/CheckBuildingTypeMiddleware.ts index dab04c1..170cb9b 100644 --- a/src/middleware/CheckBuildingTypeMiddleware.ts +++ b/src/middleware/CheckBuildingTypeMiddleware.ts @@ -32,7 +32,7 @@ export class CheckBuildingTypeMiddleware implements NestMiddleware { } // Call function to check if building is a building - await this.checkBuildingIsBuilding(buildingUuid); + await this.checkBuildingIsBuildingType(buildingUuid); // Call next middleware next(); @@ -42,7 +42,7 @@ export class CheckBuildingTypeMiddleware implements NestMiddleware { } } - async checkBuildingIsBuilding(buildingUuid: string) { + async checkBuildingIsBuildingType(buildingUuid: string) { const buildingData = await this.spaceRepository.findOne({ where: { uuid: buildingUuid }, relations: ['spaceType'], diff --git a/src/middleware/CheckCommunityTypeMiddleware.ts b/src/middleware/CheckCommunityTypeMiddleware.ts index 314b954..3eef679 100644 --- a/src/middleware/CheckCommunityTypeMiddleware.ts +++ b/src/middleware/CheckCommunityTypeMiddleware.ts @@ -32,7 +32,7 @@ export class CheckCommunityTypeMiddleware implements NestMiddleware { } // Call function to check if community is a building - await this.checkCommunityIsBuilding(communityUuid); + await this.checkCommunityIsCommunityType(communityUuid); // Call next middleware next(); @@ -42,7 +42,7 @@ export class CheckCommunityTypeMiddleware implements NestMiddleware { } } - async checkCommunityIsBuilding(communityUuid: string) { + async checkCommunityIsCommunityType(communityUuid: string) { const communityData = await this.spaceRepository.findOne({ where: { uuid: communityUuid }, relations: ['spaceType'],