From 067d77f36d834311922904d829b74dd971741706 Mon Sep 17 00:00:00 2001 From: cabbage556 Date: Mon, 3 Apr 2023 12:46:20 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20fetchShop=20API=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - findById 서비스 로직 수정 - findOne 레포지토리 메서드 relations 수정 chore-#178 --- src/apis/shops/shops.service.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { From c9ccb08e97dce2481540cf7dc18a634c1e96d1c0 Mon Sep 17 00:00:00 2001 From: cabbage556 Date: Mon, 3 Apr 2023 12:48:59 +0900 Subject: [PATCH 2/2] =?UTF-8?q?release:=20fetchShop=20API=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=B0=ED=8F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release-#180 --- cloudbuild.yaml | 2 +- docker-compose.prod.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: .