diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 4cc3ddd..882ee30 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -16,7 +16,7 @@ steps: - set - image - deployment/groomeong-backend - - backend-sha256-1=asia.gcr.io/project-groomeong/backend:1.9 + - backend-sha256-1=asia.gcr.io/project-groomeong/backend:2.0 env: - CLOUDSDK_COMPUTE_ZONE=asia-northeast3 - CLOUDSDK_CONTAINER_CLUSTER=autopilot-cluster-5 diff --git a/docker-compose.prod.yaml b/docker-compose.prod.yaml index 195ba2f..9556790 100644 --- a/docker-compose.prod.yaml +++ b/docker-compose.prod.yaml @@ -2,7 +2,7 @@ version: '3.7' services: my-backend: - image: asia.gcr.io/project-groomeong/backend:1.9 + image: asia.gcr.io/project-groomeong/backend:2.0 platform: linux/x86_64 build: context: . diff --git a/src/apis/shops/shops.service.ts b/src/apis/shops/shops.service.ts index 2b2aac0..a092dcb 100644 --- a/src/apis/shops/shops.service.ts +++ b/src/apis/shops/shops.service.ts @@ -82,7 +82,13 @@ export class ShopsService { async findById({ shopId }: IShopsServiceFindById): Promise { const myShop = await this.shopsRepository.findOne({ where: { id: shopId }, - relations: ['reservation', 'image', 'review'], + relations: [ + 'reservation', + 'image', + 'review', + 'reservation.review', + 'reservation.user', + ], }); if (!myShop) {