Skip to content

Commit 4c349d1

Browse files
committed
Trying to fix the error in the landingpages path
NativeLands data is not rendering properly. Maybe an issue with the API key? I'll check.
1 parent 7ec43cf commit 4c349d1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

v2.0/helpers/landing/landing.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,10 @@ const sendNativeLands = async function(req, res, next) {
414414
message: err.message,
415415
});
416416
});
417-
if (!maps.ok) {
417+
418+
const httpResponse = await (maps.ok);
419+
420+
if (!httpResponse) {
418421
res.status(500)
419422
.json({
420423
status: 'failure',
@@ -434,7 +437,6 @@ const sendNativeLands = async function(req, res, next) {
434437
};
435438
};
436439

437-
438440
module.exports.datasetbydbid = datasetbydbid;
439441
module.exports.dsuploadagg = dsuploadagg;
440442
module.exports.datasetagesbydbid = datasetagesbydbid;

v2.0/routes/apps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ router.get('/datasetpi', handlers.datasetsbypi);
4343
router.get('/exttax', handlers.externaltaxonquery);
4444
router.post('/orcids/validate', handlers.validateusers);
4545
router.get('/contacts/:contactid/datasets', handlers.contact_datasets);
46-
// /router.get('/nativelands', handlers.sendNativeLands);
46+
router.get('/nativelands', handlers.sendNativeLands);
4747

4848
router.get('/depenvt', handlers.depenvt);
4949

0 commit comments

Comments
 (0)