diff --git a/routes/originConda.js b/routes/originConda.js index 355d9b31e..dfa0e7c90 100644 --- a/routes/originConda.js +++ b/routes/originConda.js @@ -25,16 +25,16 @@ router.get( for (let subdir of channelData.packages[name].subdirs) { const repoUrl = `${condaChannels[channel]}/${subdir}/repodata.json` const repoData = await requestPromise({ url: repoUrl, method: 'GET', json: true }) - if (repoData.packages) { - Object.entries(repoData.packages) + if (repoData['packages']) { + Object.entries(repoData['packages']) .forEach(([, packageData]) => { if (packageData.name == name) { revisions.push(`${packageData.version}_${subdir}`) } }) } - if (repoData["packages.conda"]) { - Object.entries(repoData["packages.conda"]) + if (repoData['packages.conda']) { + Object.entries(repoData['packages.conda']) .forEach(([, packageData]) => { if (packageData.name == name) { revisions.push(`${packageData.version}_${subdir}`)