Skip to content

Commit 9b02209

Browse files
committed
Added notification when ticket update send mail
1 parent c264fc7 commit 9b02209

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/uSupport/Controllers/uSupportTicketAuthorizedApiController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public ActionResult<uSupportTicket> UpdateTicket(UpdateTicketDto dto)
147147
_uSupportSettingsService.GetEmailSubjectUpdateTicket(),
148148
_uSupportSettingsService.GetEmailTemplateUpdateTicketPath(),
149149
updatedTicket);
150+
151+
_eventAggregator.Publish(new UpdateTicketSendEmailNotification(updatedTicket));
150152
}
151153

152154
_uSupportTicketService.ClearTicketCache();
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using uSupport.Dtos.Tables;
2+
using Umbraco.Cms.Core.Notifications;
3+
4+
namespace uSupport.Notifications
5+
{
6+
public class UpdateTicketSendEmailNotification : INotification
7+
{
8+
public uSupportTicket Ticket { get; }
9+
public UpdateTicketSendEmailNotification(uSupportTicket ticket)
10+
{
11+
Ticket = ticket;
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)