Skip to content

Commit

Permalink
update search returned data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemila committed Jul 2, 2023
1 parent fe3b2a2 commit b5cdefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/movies.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const searchMovie = asyncHandler(async (story) => {
})
.get();

return movieData;
return { number: movieData.length, data: movieData };
});

const movies = { getMovies, getAnimations, getEmbedUrls, searchMovie };
Expand Down

0 comments on commit b5cdefd

Please sign in to comment.