From 6fa2dc9800d941880545ec5659a26e195afabbc7 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 19 Aug 2020 21:26:56 +0200 Subject: [PATCH] fix chapter edit changes being reported as comment add. --- services/stories.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/stories.go b/services/stories.go index 0f939f1..afaab10 100644 --- a/services/stories.go +++ b/services/stories.go @@ -265,9 +265,9 @@ func (s *StoryService) EditChapter(ctx context.Context, chapter *models.Chapter, } if story, err := s.stories.Find(ctx, chapter.StoryID); err == nil { - s.changeService.Submit(ctx, "Comment", "add", story.Listed, changekeys.Many(story, chapter), chapter) + s.changeService.Submit(ctx, "Chapter", "edit", story.Listed, changekeys.Many(story, chapter), chapter) } else { - s.changeService.Submit(ctx, "Comment", "add", false, changekeys.Many(models.Story{ID: chapter.StoryID}, chapter), chapter) + s.changeService.Submit(ctx, "Chapter", "edit", false, changekeys.Many(models.Story{ID: chapter.StoryID}, chapter), chapter) } return chapter, nil