🔧 Refactoring the way bundles are saved

This commit is contained in:
2022-07-27 22:49:00 -07:00
parent fb40fe86b5
commit 602adf8775
5 changed files with 35 additions and 28 deletions

View File

@@ -148,30 +148,7 @@ export const downloadAirDCPPItem =
);
}
if (!isNil(downloadResult)) {
bundleDBImportResult = await axios({
method: "POST",
url: `${LIBRARY_SERVICE_BASE_URI}/applyAirDCPPDownloadMetadata`,
headers: {
"Content-Type": "application/json; charset=utf-8",
},
data: {
resultId,
comicObjectId,
searchInstanceId: instanceId,
bundleId,
directoryIds,
},
});
dispatch({
type: AIRDCPP_RESULT_DOWNLOAD_INITIATED,
downloadResult: downloadResult,
bundleDBImportResult,
});
dispatch({
type: IMS_COMIC_BOOK_DB_OBJECT_FETCHED,
comicBookDetail: bundleDBImportResult.data,
IMS_inProgress: false,
});
}
} catch (error) {
throw error;