aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-02 15:46:43 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-02 15:46:43 +0200
commit919f98efdb10d57767cf129c3c0b3c357aaa29d2 (patch)
tree647b2e8092d8f26ae6cafcd3e18ae8db0c7ddac2 /graphql/resolvers/repo.go
parent90a45b4c0979dd744aa5a28c84ececf243f027d2 (diff)
downloadgit-bug-919f98efdb10d57767cf129c3c0b3c357aaa29d2.tar.gz
cache: provide sorted (id, creation, edit) list of bugs
Diffstat (limited to 'graphql/resolvers/repo.go')
-rw-r--r--graphql/resolvers/repo.go6
1 files changed, 1 insertions, 5 deletions
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 {