From dea4904034ab98afb3f2cc5b0bc9553bbf066f52 Mon Sep 17 00:00:00 2001 From: suhwan2004 Date: Tue, 5 Nov 2024 21:43:15 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=8B=A0=EA=B3=A0=ED=95=98=EA=B8=B0?= =?UTF-8?q?=20mock=20api=20=EB=8F=99=EC=9E=91=20=EB=82=B4,=20content=20val?= =?UTF-8?q?idation=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mocks/handlers/feed.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/mocks/handlers/feed.ts b/src/app/mocks/handlers/feed.ts index cb7bf80..d904fa3 100644 --- a/src/app/mocks/handlers/feed.ts +++ b/src/app/mocks/handlers/feed.ts @@ -11,10 +11,10 @@ export const feedHandlers = [ http.post('http://api.example.com/v2/feeds/:feedId/reports', async ({ request, params }) => { const { feedId } = params; - const { category, content, isBlind } = (await request.json()) as IReportFeedReqDto; + const { category, isBlind } = (await request.json()) as IReportFeedReqDto; - if (!feedId || !category || !content) { - return createHttpErrorResponse('피드 ID, 신고 카테고리, 컨텐츠가 다 입력되어야 합니다.'); + if (!feedId || !category) { + return createHttpErrorResponse('피드 ID, 신고 카테고리가 필수로 입력되어야 합니다.'); } if (isBlind) {