From 1b61112d604fe076b1d42ac5ae83e4d29932907a Mon Sep 17 00:00:00 2001 From: taeyoung0524 Date: Tue, 12 Aug 2025 23:32:56 +0900 Subject: [PATCH 1/5] =?UTF-8?q?REFACTOR=20:=20=EC=9E=91=EA=B0=80=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=A1=B0=ED=9A=8C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20commission=5Fimage=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20?= =?UTF-8?q?=EB=B6=88=EB=9F=AC=EC=98=A4=EA=B8=B0=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user/service/user.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user/service/user.service.js b/src/user/service/user.service.js index 83e7403..9509738 100644 --- a/src/user/service/user.service.js +++ b/src/user/service/user.service.js @@ -396,7 +396,7 @@ export const UserService = { const commissions = await UserRepository.FetchArtistCommissions(artistId, userId); const commissionList = await Promise.all( commissions.map(async (c) => { - const images = await CommissionRepository.findImagesByCommissionId(c.id); // c.id == targetId + const images = await CommissionRepository.findThumbnailImageByCommissionId(c.id); // c.id == targetId return { id: c.id, @@ -407,7 +407,7 @@ export const UserService = { tags: c.commissionTags.map(t => t.tag.name), thumbnail: c.thumbnailImage, bookmark: c.bookmarks.length > 0, - commission_img: images.length > 0 ? images[0].url : null // 첫 번째 이미지를 대표로 + commission_img: images?.imageUrl ?? null }; }) ); From 255e767955f1bfd495fdf660bf2f7dae2ec81472 Mon Sep 17 00:00:00 2001 From: taeyoung0524 Date: Wed, 13 Aug 2025 00:00:11 +0900 Subject: [PATCH 2/5] =?UTF-8?q?REFACTOR=20:=20=EC=9E=91=EA=B0=80=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=A1=B0=ED=9A=8C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20reviewImage=20=EB=B6=80=EB=B6=84=20[0]=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95(=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user/service/user.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/service/user.service.js b/src/user/service/user.service.js index 9509738..fbef300 100644 --- a/src/user/service/user.service.js +++ b/src/user/service/user.service.js @@ -384,12 +384,12 @@ export const UserService = { createdAt: r.createdAt, commissionTitle: r.request.commission.title, workingTime: workingTime, + review_thumbnail: images.length > 0 ? images[0] : null, writer: { nickname: r.user.nickname }, - reviewImage: images - }; - }) + }; + }) ); // 작가가 등록한 커미션 목록 From a26be4e480d58856884466ca38e59c14227301c1 Mon Sep 17 00:00:00 2001 From: taeyoung0524 Date: Wed, 13 Aug 2025 00:07:41 +0900 Subject: [PATCH 3/5] =?UTF-8?q?REFACTOR=20:=20=EC=9E=91=EA=B0=80=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=A1=B0=ED=9A=8C=20swagger=20?= =?UTF-8?q?=EB=AC=B8=EC=84=9C=ED=99=94=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/swagger/user.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/swagger/user.json b/src/common/swagger/user.json index 2642bf6..29c7eba 100644 --- a/src/common/swagger/user.json +++ b/src/common/swagger/user.json @@ -762,6 +762,7 @@ "createdAt" :{"type":"string", "example": "2025-08-04T02:31:36.000Z"}, "commissionTitle":{"type":"string", "example":"테스트 커미션 글"}, "workingTime":{"type":"string", "example":"33일"}, + "review_thumbnail":{"type":"string", "example":"https://example.com/reviewThumbnail1.png"}, "writer":{ "type":"object", "properties":{ @@ -785,6 +786,7 @@ "items":{"type":"string"}, "example":["감성", "낙서"] }, + "bookmark":{"type":"boolean", "example":false, "commission_img":{"type":"string", "example":"http://example.com/image.jpg"} } } From de52e8c0ebdffaa327c3648d10699436fc6982c4 Mon Sep 17 00:00:00 2001 From: taeyoung0524 Date: Wed, 13 Aug 2025 00:08:39 +0900 Subject: [PATCH 4/5] =?UTF-8?q?BUG=20:=20swagger=20=EB=AC=B8=EC=84=9C?= =?UTF-8?q?=ED=99=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/swagger/user.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/swagger/user.json b/src/common/swagger/user.json index 29c7eba..248cefa 100644 --- a/src/common/swagger/user.json +++ b/src/common/swagger/user.json @@ -848,5 +848,5 @@ } } } - +} From a057fb8c34f5bf326810ccd4cbe2d0b3fbf2938e Mon Sep 17 00:00:00 2001 From: taeyoung0524 Date: Wed, 13 Aug 2025 00:18:45 +0900 Subject: [PATCH 5/5] =?UTF-8?q?FIX=20:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EC=86=8C=EC=85=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20redirect=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/auth.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.config.js b/src/auth.config.js index e6c4aec..f89c67f 100644 --- a/src/auth.config.js +++ b/src/auth.config.js @@ -54,7 +54,7 @@ export const kakaoStrategy = new KakaoStrategy( { clientID: process.env.PASSPORT_KAKAO_CLIENT_ID, clientSecret: process.env.PASSPORT_KAKAO_CLIENT_SECRET, - callbackURL: "http://localhost:3000/api/users/oauth2/callback/kakao", + callbackURL: `${process.env.BASE_URL}/api/users/oauth2/callback/google`, scope: undefined, state: true, },