Skip to content

Commit

Permalink
Merge pull request #832 from sopt-makers/develop
Browse files Browse the repository at this point in the history
프러덕션 배포
  • Loading branch information
borimong authored Aug 31, 2024
2 parents 7b68438 + fb700a1 commit 8fa12a9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/__generated__/schema2.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api/mention/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function FeedCommentEditor({ defaultValue, onCancel, onSubmit }:
const handleSubmit = () => {
onSubmit({
postId: postId as number,
userIds: userIds,
orgIds: userIds,
content: comment,
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/feed/FeedCommentInput/FeedCommentInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FeedCommentInput = forwardRef<HTMLTextAreaElement, FeedCommentInputProps>(
if (!comment.trim()) return;
onSubmit({
postId: postId as number,
userIds: userIds,
orgIds: userIds,
content: comment,
}).then(() => {
setComment('');
Expand Down
2 changes: 1 addition & 1 deletion src/components/feed/Modal/FeedCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8fa12a9

Please sign in to comment.