aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/query.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-23 21:36:42 +0200
committerGitHub <noreply@github.com>2019-06-23 21:36:42 +0200
commit54e95cf36f4e50d4175f78410f3dc504a7e34179 (patch)
tree356011d5d539d259a696fe00fe6edb174b7ec268 /graphql/resolvers/query.go
parent5bae915b53ed2bb4f222db2fdc73852099b96fd2 (diff)
parent17cbe457d2d782bee914680b38fa101c9327b811 (diff)
downloadgit-bug-54e95cf36f4e50d4175f78410f3dc504a7e34179.tar.gz
Merge pull request #171 from MichaelMure/graphql-mutation-relay
Graphql mutation relay
Diffstat (limited to 'graphql/resolvers/query.go')
-rw-r--r--graphql/resolvers/query.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphql/resolvers/query.go b/graphql/resolvers/query.go
index 80b5a896..aa4e1d85 100644
--- a/graphql/resolvers/query.go
+++ b/graphql/resolvers/query.go
@@ -27,8 +27,8 @@ func (r rootQueryResolver) DefaultRepository(ctx context.Context) (*models.Repos
}, nil
}
-func (r rootQueryResolver) Repository(ctx context.Context, id string) (*models.Repository, error) {
- repo, err := r.cache.ResolveRepo(id)
+func (r rootQueryResolver) Repository(ctx context.Context, ref string) (*models.Repository, error) {
+ repo, err := r.cache.ResolveRepo(ref)
if err != nil {
return nil, err