diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/services/system_note_service.rb | 4 | ||||
-rw-r--r-- | app/services/system_notes/zoom_service.rb | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 0399ce2e533..b3eee01ea7a 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -317,11 +317,11 @@ module SystemNoteService end def zoom_link_added(issue, project, author) - create_note(NoteSummary.new(issue, project, author, _('added a Zoom call to this issue'), action: 'pinned_embed')) + ::SystemNotes::ZoomService.new(noteable: issue, project: project, author: author).zoom_link_added end def zoom_link_removed(issue, project, author) - create_note(NoteSummary.new(issue, project, author, _('removed a Zoom call from this issue'), action: 'pinned_embed')) + ::SystemNotes::ZoomService.new(noteable: issue, project: project, author: author).zoom_link_removed end private diff --git a/app/services/system_notes/zoom_service.rb b/app/services/system_notes/zoom_service.rb new file mode 100644 index 00000000000..6cd166d6cb9 --- /dev/null +++ b/app/services/system_notes/zoom_service.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module SystemNotes + class ZoomService < ::SystemNotes::BaseService + def zoom_link_added + create_note(NoteSummary.new(noteable, project, author, _('added a Zoom call to this issue'), action: 'pinned_embed')) + end + + def zoom_link_removed + create_note(NoteSummary.new(noteable, project, author, _('removed a Zoom call from this issue'), action: 'pinned_embed')) + end + end +end |