Skip to content

Commit e6da535

Browse files
committed
Fix: 빌드 오류 해결, 변경된 user-block user-report request 형식에 따라 이 도메인을 사용하는 파일들의 request data 수정
1 parent ed411fa commit e6da535

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/components/BottomSheet/OptionsBottomSheet/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const OptionsBottomSheet: React.FC<OptionsBottomSheetProps> = ({
5959
const postUserBlock = async () => {
6060
try {
6161
const request: PostUserBlockRequest = {
62-
fromUserId: currentUserId,
63-
toUserId: targetId.userId || -1,
62+
requesterId: currentUserId,
63+
targetId: targetId.userId || -1,
6464
action: 'block',
6565
};
6666
const response = await postUserBlockApi(request);
@@ -84,8 +84,8 @@ const OptionsBottomSheet: React.FC<OptionsBottomSheetProps> = ({
8484

8585
if (domain === 'user') {
8686
reportData = {
87-
fromUserId: currentUserId,
88-
toUserId: targetId.userId || -1,
87+
requesterId: currentUserId,
88+
targetId: targetId.userId || -1,
8989
reason: reason,
9090
};
9191
} else {

src/components/PostBase/LikeCommentBottomSheetContent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ const LikeCommentBottomSheetContent: React.FC<LikeCommentBottomSheetProps> = ({
213213

214214
try {
215215
const blockRequest: PostUserBlockRequest = {
216-
fromUserId: Number(storedUserId),
217-
toUserId: selectedComment.user.id,
216+
requesterId: Number(storedUserId),
217+
targetId: selectedComment.user.id,
218218
action: 'block',
219219
};
220220

src/pages/Chats/ChatRoom/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const ChatRoom: React.FC = () => {
7474
const postUserBlock = async () => {
7575
try {
7676
const data: PostUserBlockRequest = {
77-
fromUserId: currentUserId,
78-
toUserId: opponentInfo?.id || -1,
77+
requesterId: currentUserId,
78+
targetId: opponentInfo?.id || -1,
7979
action: 'block',
8080
};
8181
const response = await postUserBlockApi(data);

src/pages/Home/OOTD/Feed/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ const Feed: React.FC<FeedProps> = ({ feed }) => {
111111
const postUserBlock = async () => {
112112
try {
113113
const data: PostUserBlockRequest = {
114-
fromUserId: currentUserId || -1,
115-
toUserId: feed.user.id,
114+
requesterId: currentUserId || -1,
115+
targetId: feed.user.id,
116116
action: 'block',
117117
};
118118
const response = await postUserBlockApi(data);

0 commit comments

Comments
 (0)