🪚 Wiring up extractComicCover call with UI

This commit is contained in:
2021-05-05 18:01:54 -07:00
parent 2abd46c18c
commit 625554808a
2 changed files with 12 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
import axios from "axios";
import { IFolderData } from "../shared/interfaces/comicinfo.interfaces";
import {
IExtractComicBookCoverErrorResponse,
IExtractedComicBookCoverFile,
IExtractionOptions,
IFolderData,
} from "../../server/interfaces/folder.interface";
import { FS_API_BASE_URI } from "../constants/endpoints";
@@ -25,6 +25,7 @@ export async function walkFolder(path: string): Promise<Array<IFolderData>> {
export async function extractCoverFromComicBookArchive(
options: IExtractionOptions,
walkedFolders: Array<IFolderData>,
): Promise<
| IExtractedComicBookCoverFile
| IExtractedComicBookCoverFile[]
@@ -34,7 +35,8 @@ export async function extractCoverFromComicBookArchive(
url: FS_API_BASE_URI + "getComicCovers",
method: "POST",
data: {
...options,
options,
walkedFolders,
},
});
}