Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-19 18:10:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-19 18:10:53 +0300
commit8f3a9dbb94b5a9ae4570a22bbc2a75e7572407c8 (patch)
tree0d7e5d6d5747b57a93df1181bd86a7a127c16934 /app/mailers/previews/notify_preview.rb
parent7344cec8c24f1599086498ba19096cf9918ee168 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers/previews/notify_preview.rb')
-rw-r--r--app/mailers/previews/notify_preview.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mailers/previews/notify_preview.rb b/app/mailers/previews/notify_preview.rb
index c3987d85381..c7d6f2843de 100644
--- a/app/mailers/previews/notify_preview.rb
+++ b/app/mailers/previews/notify_preview.rb
@@ -243,8 +243,9 @@ class NotifyPreview < ActionMailer::Preview
def service_desk_new_note_email
cleanup do
note = create_note(noteable_type: 'Issue', noteable_id: issue.id, note: 'Issue note content')
+ participant = IssueEmailParticipant.create!(issue: issue, email: 'user@example.com')
- Notify.service_desk_new_note_email(issue.id, note.id, 'someone@gitlab.com').message
+ Notify.service_desk_new_note_email(issue.id, note.id, participant).message
end
end