File tree Expand file tree Collapse file tree
BottomSheet/OptionsBottomSheet Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments