From c884d557bf5e0ebdbe6e3b20535af24c2e97d29f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 8 Dec 2020 14:42:13 +0100 Subject: repo: move bleve there --- api/graphql/resolvers/repo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api') 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 { -- cgit