From 6a5ffd94e0c7a2b9373981f99c4798eda601f4da Mon Sep 17 00:00:00 2001 From: Alexander Scharinger Date: Sun, 11 Apr 2021 22:08:21 +0200 Subject: Fix ID string in order to find correct bug instance --- bug/op_add_comment.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bug/op_add_comment.go') diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go index f835866b..15e62226 100644 --- a/bug/op_add_comment.go +++ b/bug/op_add_comment.go @@ -31,9 +31,8 @@ func (op *AddCommentOperation) Apply(snapshot *Snapshot) { snapshot.addActor(op.Author_) snapshot.addParticipant(op.Author_) - commentId := entity.CombineIds(snapshot.Id(), op.Id()) comment := Comment{ - id: commentId, + id: entity.CombineIds(snapshot.Id(), op.Id()), Message: op.Message, Author: op.Author_, Files: op.Files, @@ -43,7 +42,7 @@ func (op *AddCommentOperation) Apply(snapshot *Snapshot) { snapshot.Comments = append(snapshot.Comments, comment) item := &AddCommentTimelineItem{ - CommentTimelineItem: NewCommentTimelineItem(commentId, comment), + CommentTimelineItem: NewCommentTimelineItem(comment), } snapshot.Timeline = append(snapshot.Timeline, item) -- cgit