Browse Source

Return if an email has already been sent for the notifiers

pull/42/head
Berkan Sasmaz 5 years ago
parent
commit
a93a23a173
  1. 2
      src/EventHub.BackgroundServices/Events/EventReminderNotifier.cs
  2. 2
      src/EventHub.BackgroundServices/Events/EventTimingChangeNotifier.cs
  3. 2
      src/EventHub.BackgroundServices/Events/NewEventNotifier.cs

2
src/EventHub.BackgroundServices/Events/EventReminderNotifier.cs

@ -36,7 +36,7 @@ namespace EventHub.Events
public async Task NotifyAsync(Event @event)
{
if (@event is null)
if (@event is null || @event.IsRemindingEmailSent)
{
return;
}

2
src/EventHub.BackgroundServices/Events/EventTimingChangeNotifier.cs

@ -36,7 +36,7 @@ namespace EventHub.Events
public async Task NotifyAsync(Event @event)
{
if (@event is null)
if (@event is null || @event.IsTimingChangeEmailSent)
{
return;
}

2
src/EventHub.BackgroundServices/Events/NewEventNotifier.cs

@ -36,7 +36,7 @@ namespace EventHub.Events
public async Task NotifyAsync(Event @event)
{
if (@event is null)
if (@event is null || @event.IsEmailSentToMembers)
{
return;
}

Loading…
Cancel
Save