diff options
author | Alexander Scharinger <rng.dynamics@gmail.com> | 2021-04-11 22:08:21 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-04-17 20:03:33 +0200 |
commit | 6a5ffd94e0c7a2b9373981f99c4798eda601f4da (patch) | |
tree | a63b24b34333dff04ac9416f9944b65ae6f67c8b /bug/op_create.go | |
parent | c71d26d513e4e5e36e6983e05dee4ad28ec664c7 (diff) | |
download | git-bug-6a5ffd94e0c7a2b9373981f99c4798eda601f4da.tar.gz git-bug-6a5ffd94e0c7a2b9373981f99c4798eda601f4da.zip |
Fix ID string in order to find correct bug instance
Diffstat (limited to 'bug/op_create.go')
-rw-r--r-- | bug/op_create.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bug/op_create.go b/bug/op_create.go index 75b60bd8..fefde66a 100644 --- a/bug/op_create.go +++ b/bug/op_create.go @@ -56,9 +56,8 @@ func (op *CreateOperation) Apply(snapshot *Snapshot) { snapshot.Title = op.Title - commentId := entity.CombineIds(snapshot.Id(), op.Id()) comment := Comment{ - id: commentId, + id: entity.CombineIds(snapshot.Id(), op.Id()), Message: op.Message, Author: op.Author_, UnixTime: timestamp.Timestamp(op.UnixTime), @@ -70,7 +69,7 @@ func (op *CreateOperation) Apply(snapshot *Snapshot) { snapshot.Timeline = []TimelineItem{ &CreateTimelineItem{ - CommentTimelineItem: NewCommentTimelineItem(commentId, comment), + CommentTimelineItem: NewCommentTimelineItem(comment), }, } } |