aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/operations.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/resolvers/operations.go')
-rw-r--r--graphql/resolvers/operations.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphql/resolvers/operations.go b/graphql/resolvers/operations.go
index 88e15d44..c8089ac1 100644
--- a/graphql/resolvers/operations.go
+++ b/graphql/resolvers/operations.go
@@ -9,15 +9,21 @@ import (
"github.com/MichaelMure/git-bug/graphql/models"
)
+type createOperationResolver struct{}
+
+func (createOperationResolver) Date(ctx context.Context, obj *bug.CreateOperation) (time.Time, error) {
+ return obj.Time(), nil
+}
+
type addCommentOperationResolver struct{}
func (addCommentOperationResolver) Date(ctx context.Context, obj *bug.AddCommentOperation) (time.Time, error) {
return obj.Time(), nil
}
-type createOperationResolver struct{}
+type editCommentOperationResolver struct{}
-func (createOperationResolver) Date(ctx context.Context, obj *bug.CreateOperation) (time.Time, error) {
+func (editCommentOperationResolver) Date(ctx context.Context, obj *bug.EditCommentOperation) (time.Time, error) {
return obj.Time(), nil
}