From 919f98efdb10d57767cf129c3c0b3c357aaa29d2 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 2 Sep 2018 15:46:43 +0200 Subject: cache: provide sorted (id, creation, edit) list of bugs --- graphql/resolvers/repo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'graphql/resolvers') diff --git a/graphql/resolvers/repo.go b/graphql/resolvers/repo.go index 5756a9ee..fc82faf4 100644 --- a/graphql/resolvers/repo.go +++ b/graphql/resolvers/repo.go @@ -19,11 +19,7 @@ func (repoResolver) AllBugs(ctx context.Context, obj *models.Repository, after * } // Simply pass a []string with the ids to the pagination algorithm - source, err := obj.Repo.AllBugIds() - - if err != nil { - return models.BugConnection{}, err - } + source := obj.Repo.AllBugOrderById() // The edger create a custom edge holding just the id edger := func(id string, offset int) connections.Edge { -- cgit