Skip to content

Commit

Permalink
chore: 신고하기 mock api 동작 내, content validation 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
suhwan2004 committed Nov 5, 2024
1 parent 7663f66 commit dea4904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/mocks/handlers/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dea4904

Please sign in to comment.