aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-12-08 14:42:13 +0100
committerMichael Muré <batolettre@gmail.com>2020-12-08 14:42:13 +0100
commitc884d557bf5e0ebdbe6e3b20535af24c2e97d29f (patch)
tree3bb95fcf0d6a2a19e6915cdcc1da4d70bc448bb4 /api
parent71e1303234ef227851998f08c98c7c69670c9966 (diff)
downloadgit-bug-c884d557bf5e0ebdbe6e3b20535af24c2e97d29f.tar.gz
repo: move bleve there
Diffstat (limited to 'api')
-rw-r--r--api/graphql/resolvers/repo.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/graphql/resolvers/repo.go b/api/graphql/resolvers/repo.go
index 5d96428e..c2163cbe 100644
--- a/api/graphql/resolvers/repo.go
+++ b/api/graphql/resolvers/repo.go
@@ -41,7 +41,10 @@ func (repoResolver) AllBugs(_ context.Context, obj *models.Repository, after *st
}
// Simply pass a []string with the ids to the pagination algorithm
- source := obj.Repo.QueryBugs(q)
+ source, err := obj.Repo.QueryBugs(q)
+ if err != nil {
+ return nil, err
+ }
// The edger create a custom edge holding just the id
edger := func(id entity.Id, offset int) connections.Edge {