Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/services/like.service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
ValidationError,
EntityValidationError,
DuplicateLikeMomentError,
momentIdNotFoundError,
LikeIdNotExistError,
Expand All @@ -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);
}

// 게시글 존재 여부 확인
Expand Down Expand Up @@ -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;
Expand Down