🍇 Comicvine search WIP
This commit is contained in:
@@ -115,10 +115,23 @@ export const fetchComicVineMatches = (searchPayload, options) => (dispatch) => {
|
|||||||
issue: issueSearchQuery.searchParams,
|
issue: issueSearchQuery.searchParams,
|
||||||
series: seriesSearchQuery.searchParams,
|
series: seriesSearchQuery.searchParams,
|
||||||
});
|
});
|
||||||
axios.request({
|
axios
|
||||||
url: "",
|
.request({
|
||||||
method: "POST",
|
url: "http://localhost:3080/api/comicvine/fetchseries",
|
||||||
});
|
method: "POST",
|
||||||
|
data: {
|
||||||
|
format: "json",
|
||||||
|
sort: "name%3Aasc",
|
||||||
|
query: issueSearchQuery.searchParams.searchTerms.name,
|
||||||
|
fieldList: "",
|
||||||
|
limit: "10",
|
||||||
|
offset: "5",
|
||||||
|
resources: "issue",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((response) => {
|
||||||
|
console.log("CV says to fuck off:", response);
|
||||||
|
});
|
||||||
return { issueSearchQuery, series: seriesSearchQuery.searchParams };
|
return { issueSearchQuery, series: seriesSearchQuery.searchParams };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user