diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-08 17:22:45 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-08 17:35:09 +0100 |
commit | 20ca2bc0984f089a45286002a429d51746b0febb (patch) | |
tree | 61bd87f249ca638cb691d9d17d3eceb6493ae69b /graphql/resolvers/identity.go | |
parent | 646fd681ffba59d4a74ec3d99558d2ed70b0106b (diff) | |
download | git-bug-20ca2bc0984f089a45286002a429d51746b0febb.tar.gz |
fix merge
Diffstat (limited to 'graphql/resolvers/identity.go')
-rw-r--r-- | graphql/resolvers/identity.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphql/resolvers/identity.go b/graphql/resolvers/identity.go index 2d1e909b..d36669d0 100644 --- a/graphql/resolvers/identity.go +++ b/graphql/resolvers/identity.go @@ -14,3 +14,8 @@ type identityResolver struct{} func (identityResolver) ID(ctx context.Context, obj identity.Interface) (string, error) { return obj.Id().String(), nil } + +func (r identityResolver) HumanID(ctx context.Context, obj identity.Interface) (string, error) { + return obj.Id().Human(), nil + +} |