From 92084fc18add17150b0deb26db2b2f0204c8e05e Mon Sep 17 00:00:00 2001 From: OhDongI Date: Thu, 20 Feb 2025 21:47:26 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=ED=95=A8=EC=88=98=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/like.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/like.service.js b/src/services/like.service.js index ac6b1e7..cd2a1fa 100644 --- a/src/services/like.service.js +++ b/src/services/like.service.js @@ -1,5 +1,5 @@ import { - ValidationError, + EntityValidationError, DuplicateLikeMomentError, momentIdNotFoundError, LikeIdNotExistError, @@ -25,7 +25,7 @@ export const likeMoment = async (data) => { try { // 입력값 검증 if (!data.entityId || !data.entityType || !data.userId) { - throw new ValidationError(data); + throw new EntityValidationError(data); } // 게시글 존재 여부 확인 @@ -56,7 +56,7 @@ export const likeMoment = async (data) => { } catch (error) { // 사용자의 잘못된 요청 - if (error instanceof ValidationError || + if (error instanceof EntityValidationError || error instanceof momentIdNotFoundError || error instanceof DuplicateLikeMomentError) { throw error;