From ab245a70ead7a5576d8ed74a0b16227d6022eb27 Mon Sep 17 00:00:00 2001 From: myukang Date: Fri, 13 Oct 2023 13:40:18 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Fix]=20socialLink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #141 에서 socialLink null로 받을 때 '' 빈 문자열로 바꾸는 코드가 생략되는 문제 발생. --- src/database/repository/mentorProfile.repository.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/database/repository/mentorProfile.repository.ts b/src/database/repository/mentorProfile.repository.ts index b4e7f3d..1886824 100644 --- a/src/database/repository/mentorProfile.repository.ts +++ b/src/database/repository/mentorProfile.repository.ts @@ -128,6 +128,7 @@ export class MentorProfileRepository { if (data.categories.length == 0) isHide = true; // 업데이트할 해시태그가 0개인 경우 if (data.hashtags.length == 0) isHide = true; + if (data.socialLink == null) data.socialLink = ''; return prisma.mentorProfile.update({ where: {