summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2022-02-16 13:54:46 +0530
committerRicardo Wurmus <rekado@elephly.net>2022-02-17 23:19:02 +0100
commit9aff1b63c4ec2128561097536c2ffbe02c0d5a24 (patch)
tree38396659fe7c3c86aa0055efd63423786886a41b
parentf5232c49fe8a3b127c96f7b502775f16aebf3033 (diff)
web: Preprocess search query from GraphQL before use.
* mumi/web/graphql.scm (<query>): Preprocess search query using process-query before passing on to search-bugs.
-rw-r--r--mumi/web/graphql.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/mumi/web/graphql.scm b/mumi/web/graphql.scm
index 662c5ba..56110a0 100644
--- a/mumi/web/graphql.scm
+++ b/mumi/web/graphql.scm
@@ -102,7 +102,8 @@
(bug-status number)))
(issues (non-nullable-type (list-type <issue>))
(lambda* (parent context info #:key search)
- (search-bugs search)))
+ (search-bugs (string-join
+ (process-query search)))))
(person (non-nullable-type <person>)
(lambda* (parent context info #:key email)
email)))