Skip to content

Commit 5557c70

Browse files
committed
Trying to wrap the try/catch.
1 parent 9c5c596 commit 5557c70

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

v2.0/helpers/landing/landing.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,16 @@ const sendNativeLands = async function(req, res, next) {
421421
data: null,
422422
message: maps.error,
423423
});
424+
} else {
425+
const natland = await maps.json();
426+
res.status(200)
427+
.json({
428+
status: 'success',
429+
data: natland,
430+
message: 'Retrieved all datasets',
431+
query: outobj,
432+
});
424433
}
425-
const natland = await maps.json();
426-
res.status(200)
427-
.json({
428-
status: 'success',
429-
data: natland,
430-
message: 'Retrieved all datasets',
431-
query: outobj,
432-
});
433434
};
434435
};
435436

0 commit comments

Comments
 (0)