Skip to content

Commit

Permalink
updated updatePreImport
Browse files Browse the repository at this point in the history
  • Loading branch information
KunaalAgarwal committed Aug 2, 2023
1 parent 95d790f commit f3b592a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/plot/nadac.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ async function updatePreImport(){
endpointStore.removeItem("metastore/schemas/distribution/items");
nadacDatasets = (await getDatasetByKeyword("nadac")).filter(r => r.title.includes("(National Average Drug Acquisition Cost)"));
nadacDistributions = await Promise.all(nadacDatasets.map(r => {return convertDatasetToDistributionId(r.identifier)}));
console.log("Pre Import was updated" + nadac2023id);
} catch (error){
console.log("Update unsuccessful, clear cache if update still needed." + error);
}
Expand Down

0 comments on commit f3b592a

Please sign in to comment.