Skip to content

Commit

Permalink
Paleogeography is repointed, however, we need to test this live in de…
Browse files Browse the repository at this point in the history
…velopment UI
  • Loading branch information
amyfromandi committed Jul 23, 2024
1 parent 506f8ae commit fe5fe81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions v2/paleogeography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var api = require("./api"),
async = require("async"),
dbgeo = require("dbgeo"),
larkin = require("./larkin");

//TODO test this endpoint. cannot test error: relation "earthbyte2013_raw.reconstructed_2" does not exist
module.exports = function (req, res, next) {
if (!req.query.age && !req.query.interval_name && !("sample" in req.query)) {
larkin.info(req, res, next);
Expand All @@ -24,7 +24,7 @@ module.exports = function (req, res, next) {
callback(error);
} else {
if (result.length === 1) {
callback(null, parseInt(result.rows[0].mid));
callback(null, parseInt(result[0].mid));
} else {
larkin.error(req, res, next, "interval not found");
}
Expand All @@ -46,7 +46,7 @@ module.exports = function (req, res, next) {
limit,
[],
function (error, result) {
callback(null, result.rows);
callback(null, result);
},
);
},
Expand Down Expand Up @@ -79,7 +79,7 @@ module.exports = function (req, res, next) {
: false,
},
{
data: result.rows,
data: result,
},
);
}
Expand Down

0 comments on commit fe5fe81

Please sign in to comment.