Skip to content

Commit 910c99b

Browse files
committed
Fix small error in /defs/projects route
1 parent 6149fab commit 910c99b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@macrostrat/api-v2",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "An API for stratigraphic and geological information (Version 2).",
55
"main": "server.ts",
66
"repository": {

v2/definitions/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function (req, res, next, cb) {
1212
let params = {};
1313

1414
if (req.query.project_id) {
15-
where.push("projects.id = ANY(:project_id)");
15+
where.push("p.id = ANY(:project_id)");
1616
params["project_id"] = larkin.parseMultipleIds(req.query.project_id);
1717
}
1818

0 commit comments

Comments
 (0)