🔧 Fixed params destructuring

This commit is contained in:
2021-10-12 21:28:03 -07:00
parent ad59990f76
commit 56ab3859b8
3 changed files with 18 additions and 9 deletions

View File

@@ -41,13 +41,22 @@ export default class ComicVineService extends Service {
};
}>
): Promise<any> => {
const { format, sort, query, fieldList, limit, offset, resources } = ctx.params;
const response = await axios.request({
url:
CV_BASE_URL +
"search" +
"?api_key=" +
CV_API_KEY,
params: ctx.params,
params: {
format,
sort,
query,
fieldList,
limit,
offset,
resources,
},
transformResponse: (r) => {
const matches = JSON.parse(r);
return matchScorer(