🍬 Removed hardcoded reference to import-service

TODO: Remove the repetitive use of thumbnail generating logic
This commit is contained in:
2021-10-21 12:03:58 -07:00
parent 419962c756
commit 116cbf2a62
8 changed files with 28 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ import {
PriorityEnum,
SearchResponse,
} from "threetwo-ui-typings";
import { IMPORT_SERVICE_BASE_URI } from "../constants/endpoints";
import {
AIRDCPP_SEARCH_RESULTS_ADDED,
AIRDCPP_SEARCH_RESULTS_UPDATED,
@@ -129,7 +130,7 @@ export const downloadAirDCPPItem =
if (!isNil(downloadResult)) {
bundleDBImportResult = await axios({
method: "POST",
url: "http://localhost:3000/api/import/applyAirDCPPDownloadMetadata",
url: `${IMPORT_SERVICE_BASE_URI}/applyAirDCPPDownloadMetadata`,
headers: {
"Content-Type": "application/json; charset=utf-8",
},
@@ -187,7 +188,7 @@ export const getBundlesForComic =
}
const comicObject = await axios({
method: "POST",
url: "http://localhost:3000/api/import/getComicBookById",
url: `${IMPORT_SERVICE_BASE_URI}/getComicBookById`,
headers: {
"Content-Type": "application/json; charset=utf-8",
},