🔧 Fixed a bug with raw import into mongo
This commit is contained in:
@@ -108,7 +108,7 @@ export default class ApiService extends Service {
|
||||
let comicBookCoverMetadata =
|
||||
await extractCoverFromFile(
|
||||
extractionOptions,
|
||||
folder
|
||||
folder
|
||||
);
|
||||
const dbImportResult = await this.broker.call(
|
||||
"import.rawImportToDB",
|
||||
@@ -121,6 +121,9 @@ export default class ApiService extends Service {
|
||||
},
|
||||
},
|
||||
rawFileDetails: comicBookCoverMetadata,
|
||||
sourcedMetadata: {
|
||||
comicvine: {},
|
||||
},
|
||||
},
|
||||
{}
|
||||
);
|
||||
|
||||
@@ -73,7 +73,7 @@ export default class ProductsService extends Service {
|
||||
console.log("ASDASD", ctx.params);
|
||||
let volumeDetails;
|
||||
const comicMetadata = ctx.params;
|
||||
if (
|
||||
if (comicMetadata.sourcedMetadata.comicvine &&
|
||||
!isNil(
|
||||
comicMetadata.sourcedMetadata.comicvine
|
||||
.volume
|
||||
|
||||
Reference in New Issue
Block a user