Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

프러덕션 배포 #832

Merged
merged 2 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading