From 3676a89faf3590d93c3309813d293b57ed15b46d Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Tue, 1 Feb 2022 09:33:12 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=82=20Integration=20with=20BullMQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/comicvine.service.ts | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/services/comicvine.service.ts b/services/comicvine.service.ts index 1df4e0e..ba2da3f 100644 --- a/services/comicvine.service.ts +++ b/services/comicvine.service.ts @@ -63,39 +63,6 @@ export default class ComicVineService extends Service { return data; }, }, - getIssuesForVolume: { - rest: "POST /getIssuesForVolume", - params: {}, - handler: async ( - ctx: Context<{ comicObjectID: string }> - ) => { - try { - const issues: any = []; - const comicBookDetails: any = await ctx.broker.call( - "import.getComicBookById", - { id: ctx.params.comicObjectID } - ); - if (!isUndefined(comicBookDetails)) { - const foo = comicBookDetails.sourcedMetadata.comicvine.volumeInformation.issues.map( - async (issue: any, idx: any) => { - const issueMetadata = await axios({ - url: `${issue.api_detail_url}?api_key=${process.env.COMICVINE_API_KEY}`, - params: { - resources: "issues", - limit: "100", - format: "json", - }, - }); - return issueMetadata.data.results; - } - ); - return Promise.all(foo); - } - } catch (error) { - throw error; - } - }, - }, volumeBasedSearch: { rest: "POST /volumeBasedSearch", params: {},