Skip to content

Commit

Permalink
renamed to SaveNotificationsJob
Browse files Browse the repository at this point in the history
  • Loading branch information
granstel committed Mar 27, 2024
1 parent f1fbc06 commit 8c3ffed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dodo1000Bot.Api/DependencyModules/JobsRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ internal static void AddJobs(this IServiceCollection services, AppConfiguration
services.AddSingleton<ChannelWriter<Notification>>(channel);
services.AddSingleton<ChannelReader<Notification>>(channel);

services.AddHostedService<PushNotificationsJob>();
services.AddHostedService<SaveNotificationsJob>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

namespace Dodo1000Bot.Api.Jobs;

public class PushNotificationsJob : BackgroundService
public class SaveNotificationsJob : BackgroundService
{
private readonly ChannelReader<Notification> _notificationsChannel;
private readonly NotificationsService _notificationsService;

public PushNotificationsJob(ChannelReader<Notification> notificationsChannel, NotificationsService notificationsService)
public SaveNotificationsJob(ChannelReader<Notification> notificationsChannel, NotificationsService notificationsService)
{
_notificationsChannel = notificationsChannel;
_notificationsService = notificationsService;
Expand Down

0 comments on commit 8c3ffed

Please sign in to comment.