Skip to content

Commit

Permalink
Merge pull request #211 from ilri/enhancements-Oct-2023
Browse files Browse the repository at this point in the history
Missing items plugin fix the missing await for the values mapping fun…
  • Loading branch information
alanorth authored Dec 3, 2023
2 parents 95c5d4f + 85b3603 commit e809c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/plugins/dspace_add_missing_items/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class AddMissingItems {
if (result && result.type == 'item') {
let formatted;
if (job.data.repo.type === 'DSpace') {
const mappingValues = this.dspaceService.getMappingValues(
const mappingValues = await this.dspaceService.getMappingValues(
job.data.index,
false,
);
Expand All @@ -61,7 +61,7 @@ export class AddMissingItems {
mappingValues,
);
} else if (job.data.repo.type === 'DSpace7') {
const mappingValues = this.dspace7Service.getMappingValues(
const mappingValues = await this.dspace7Service.getMappingValues(
job.data.index,
false,
);
Expand Down

0 comments on commit e809c25

Please sign in to comment.