From 448cfd596940dfa3dc63108f98c1d129e7864ebf Mon Sep 17 00:00:00 2001 From: Hyeonsu Kim Date: Sun, 1 Sep 2024 01:09:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20comment/v2/mention=20=EC=9D=98=20userIds?= =?UTF-8?q?=20=EB=A5=BC=20orgIds=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__generated__/schema2.d.ts | 4 ++-- src/api/mention/index.ts | 2 +- src/components/feed/FeedCommentEditor/FeedCommentEditor.tsx | 2 +- src/components/feed/FeedCommentInput/FeedCommentInput.tsx | 2 +- src/components/feed/Modal/FeedCreateModal.tsx | 2 +- .../feed/Modal/FeedCreateWithSelectMeetingModal.tsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/__generated__/schema2.d.ts b/src/__generated__/schema2.d.ts index 57469e4e..65add315 100644 --- a/src/__generated__/schema2.d.ts +++ b/src/__generated__/schema2.d.ts @@ -1665,13 +1665,13 @@ export interface components { */ joinableParts: ("PM" | "DESIGN" | "IOS" | "ANDROID" | "SERVER" | "WEB")[]; /** - * Format: int32 + * Format: int64 * @description 지원자 수 * @example 50 */ applicantCount: number; /** - * Format: int32 + * Format: int64 * @description 가입된 지원자 수 * @example 9 */ diff --git a/src/api/mention/index.ts b/src/api/mention/index.ts index 2d6e1bf2..031894ab 100644 --- a/src/api/mention/index.ts +++ b/src/api/mention/index.ts @@ -2,7 +2,7 @@ import { parseMention } from '@components/util/parseMention'; import { api } from '..'; export interface PostCommentWithMentionRequest { - userIds: number[] | null; + orgIds: number[] | null; content: string; postId: number; } diff --git a/src/components/feed/FeedCommentEditor/FeedCommentEditor.tsx b/src/components/feed/FeedCommentEditor/FeedCommentEditor.tsx index 46efab3d..67c2ed63 100644 --- a/src/components/feed/FeedCommentEditor/FeedCommentEditor.tsx +++ b/src/components/feed/FeedCommentEditor/FeedCommentEditor.tsx @@ -22,7 +22,7 @@ export default function FeedCommentEditor({ defaultValue, onCancel, onSubmit }: const handleSubmit = () => { onSubmit({ postId: postId as number, - userIds: userIds, + orgIds: userIds, content: comment, }); }; diff --git a/src/components/feed/FeedCommentInput/FeedCommentInput.tsx b/src/components/feed/FeedCommentInput/FeedCommentInput.tsx index 8b6d6551..6fc6b184 100644 --- a/src/components/feed/FeedCommentInput/FeedCommentInput.tsx +++ b/src/components/feed/FeedCommentInput/FeedCommentInput.tsx @@ -30,7 +30,7 @@ const FeedCommentInput = forwardRef( if (!comment.trim()) return; onSubmit({ postId: postId as number, - userIds: userIds, + orgIds: userIds, content: comment, }).then(() => { setComment(''); diff --git a/src/components/feed/Modal/FeedCreateModal.tsx b/src/components/feed/Modal/FeedCreateModal.tsx index 6c2c6fcc..6db95413 100644 --- a/src/components/feed/Modal/FeedCreateModal.tsx +++ b/src/components/feed/Modal/FeedCreateModal.tsx @@ -63,7 +63,7 @@ function FeedCreateModal({ isModalOpened, meetingId, handleModalClose }: CreateM alert('피드를 작성했습니다.'); mutatePostPostWithMention({ postId: res.postId, - userIds: parseMentionedUserIds(formMethods.getValues().contents), + orgIds: parseMentionedUserIds(formMethods.getValues().contents), content: formMethods.getValues().contents, }); submitModal.handleModalClose(); diff --git a/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx b/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx index 5802a829..ba8e4d86 100644 --- a/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx +++ b/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx @@ -67,7 +67,7 @@ function FeedCreateWithSelectMeetingModal({ isModalOpened, handleModalClose }: C alert('피드를 작성했습니다.'); mutatePostPostWithMention({ postId: res.postId, - userIds: parseMentionedUserIds(formMethods.getValues().contents), + orgIds: parseMentionedUserIds(formMethods.getValues().contents), content: formMethods.getValues().contents, }); submitModal.handleModalClose();