diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-23 19:19:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-23 19:19:16 +0200 |
commit | e7648996c8f278d061fe03a5c4d255049da765e5 (patch) | |
tree | 2917891d130853b24a375ef00b68fe14c8228296 /graphql/resolvers/bug.go | |
parent | 16f55e3f4d560330a638986130d27fd067300169 (diff) | |
download | git-bug-e7648996c8f278d061fe03a5c4d255049da765e5.tar.gz |
bug: add a new BugExerpt that hold a subset of a bug state for efficient sorting and retrieval
Diffstat (limited to 'graphql/resolvers/bug.go')
-rw-r--r-- | graphql/resolvers/bug.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphql/resolvers/bug.go b/graphql/resolvers/bug.go index b3385243..858feb16 100644 --- a/graphql/resolvers/bug.go +++ b/graphql/resolvers/bug.go @@ -2,6 +2,7 @@ package resolvers import ( "context" + "time" "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/graphql/connections" @@ -67,3 +68,7 @@ func (bugResolver) Operations(ctx context.Context, obj *bug.Snapshot, after *str return connections.BugOperationCon(obj.Operations, edger, conMaker, input) } + +func (bugResolver) LastEdit(ctx context.Context, obj *bug.Snapshot) (time.Time, error) { + return obj.LastEditTime(), nil +} |