Skip to content

Commit 3f60b31

Browse files
authored
♻️ Refactor: 크루 게시글 댓글 로직 수정
♻️ Refactor: 크루 게시글 댓글 로직 수정
2 parents a58034c + b2c0389 commit 3f60b31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/crew/page/post/service/post.service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ export const updateCrewPostComment = async ({ crewId, postId, userId, commentId,
289289
if (!isExistComment) {
290290
throw new baseError.NotFoundCommentError("존재하지 않는 댓글입니다.", { commentId });
291291
}
292-
if (isExistComment.crewId !== crewId) {
292+
293+
if (isExistComment.crewPost.crewId !== crewId) {
293294
throw new baseError.NotBelongToCrewError("해당 크루에 속하지 않은 댓글입니다.", { commentId });
294295
}
295296
if (isExistComment.postId !== postId) {

0 commit comments

Comments
 (0)