Skip to content

Commit

Permalink
don't send Admin NotificationType
Browse files Browse the repository at this point in the history
  • Loading branch information
granstel committed Jan 15, 2024
1 parent 3199daa commit 30461b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dodo1000Bot.Api/Dodo1000Bot.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.24.0</Version>
<Version>1.25.0</Version>
<UserSecretsId>f449de95-800a-40ef-8716-6e80b7f0977d</UserSecretsId>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Dodo1000Bot.Services/NotificationsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task PushNotifications(CancellationToken cancellationToken)
return;
}

notifications = notifications.Where(n => n.Type != NotificationType.NewUnit).ToList();
notifications = notifications.Where(n => n.Type != NotificationType.Admin).ToList();

IEnumerable<Task<IEnumerable<PushedNotification>>> tasks = _notifyServices.Select(s => s.NotifyAbout(notifications, cancellationToken));

Expand Down

0 comments on commit 30461b9

Please sign in to comment.