@@ -12,7 +12,8 @@ import {getArtistDetail, artistDetailSuccess, artistDetailFailure} from '../../r
1212
1313function * movieListApi ( action : any ) {
1414 try {
15- const response = yield call ( AxiosService . getServiceData , ApiUrls . MOVIE_LIST , action . payload . page ) ;
15+ console . log ( '>> List >> ' , action ) ;
16+ const response = yield call ( AxiosService . getServiceData , ApiUrls . MOVIE_LIST , action . payload ) ;
1617 const result = response . data ;
1718 yield put ( movieListSuccess ( result ) ) ;
1819 } catch ( error ) {
@@ -22,7 +23,7 @@ function* movieListApi(action: any) {
2223
2324function * popularMovieListApi ( action : any ) {
2425 try {
25- const response = yield call ( AxiosService . getServiceData , ApiUrls . POPULAR_MOVIE_LIST , action . payload . page ) ;
26+ const response = yield call ( AxiosService . getServiceData , ApiUrls . POPULAR_MOVIE_LIST , action . payload ) ;
2627 const result = response . data ;
2728 yield put ( popularMovieSuccess ( result ) ) ;
2829 } catch ( error ) {
@@ -32,7 +33,7 @@ function* popularMovieListApi(action: any) {
3233
3334function * topRatedMovieListApi ( action : any ) {
3435 try {
35- const response = yield call ( AxiosService . getServiceData , ApiUrls . TOP_RATED_MOVIE_LIST , action . payload . movieId ) ;
36+ const response = yield call ( AxiosService . getServiceData , ApiUrls . TOP_RATED_MOVIE_LIST , action . payload ) ;
3637 const result = response . data ;
3738 yield put ( topRatedMovieSuccess ( result ) ) ;
3839 } catch ( error ) {
@@ -42,7 +43,7 @@ function* topRatedMovieListApi(action: any) {
4243
4344function * upComingMovieListApi ( action : any ) {
4445 try {
45- const response = yield call ( AxiosService . getServiceData , ApiUrls . UP_COMING_MOVIE_LIST , action . payload . movieId ) ;
46+ const response = yield call ( AxiosService . getServiceData , ApiUrls . UP_COMING_MOVIE_LIST , action . payload ) ;
4647 const result = response . data ;
4748 yield put ( upcomingMovieSuccess ( result ) ) ;
4849 } catch ( error ) {
@@ -62,7 +63,7 @@ function* movieDetailApi(action: any) {
6263
6364function * similarMovieApi ( action : any ) {
6465 try {
65- const response = yield call ( AxiosService . getServiceData , ApiUrls . SIMILAR_MOVIE ( action . payload . movieId ) ) ;
66+ const response = yield call ( AxiosService . getServiceData , ApiUrls . SIMILAR_MOVIE ( action . payload . movieId ) , { } ) ;
6667 const result = response . data ;
6768 yield put ( similarMovieSuccess ( result ) ) ;
6869 } catch ( error ) {
0 commit comments