Skip to content

Commit

Permalink
fix addItisTaxonRecord function call
Browse files Browse the repository at this point in the history
  • Loading branch information
KjartanE committed Feb 10, 2024
1 parent b74a7e7 commit 5df8cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/taxonomy-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class TaxonomyService {
const itisService = new ItisService();
const itisResponse = await itisService.searchItisByTSN(missingTsnIds);

await Promise.all(itisResponse.map(this.addItisTaxonRecord));
await Promise.all(itisResponse.map(async (item) => this.addItisTaxonRecord(item)));
}

// Missing ids patched, return taxon records for all requested ids
Expand Down

0 comments on commit 5df8cbd

Please sign in to comment.