Skip to content

Commit 0c76e62

Browse files
committed
serverside filtering
1 parent ddafce8 commit 0c76e62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

v2/definitions/strat_name_concepts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module.exports = function (req, res, next, cb) {
3131

3232
if ("all" in req.query) {
3333
// do nothing
34+
} else if (req.query.concept_like) {
35+
where.push("lower(name) ILIKE lower(:name)");
36+
params["name"] = req.query.concept_like + "%";
3437
} else if ("concept_name" in req.query) {
3538
where.push("name = ANY(:concept_name)");
3639
params["concept_name"] = req.query.concept_name;

0 commit comments

Comments
 (0)