🐛 Fix pusher service

This commit is contained in:
2025-08-14 20:46:19 +08:00
parent 792d703b6f
commit 740d9a33cf

View File

@@ -5,7 +5,7 @@ using Quartz;
namespace DysonNetwork.Pusher.Notification;
public class NotificationFlushHandler(AppDatabase db, Logger<NotificationFlushHandler> logger) : IFlushHandler<Notification>
public class NotificationFlushHandler(AppDatabase db) : IFlushHandler<Notification>
{
public async Task FlushAsync(IReadOnlyList<Notification> items)
{
@@ -15,7 +15,6 @@ public class NotificationFlushHandler(AppDatabase db, Logger<NotificationFlushHa
x.UpdatedAt = x.CreatedAt;
return x;
}), config => config.ConflictOption = ConflictOption.Ignore);
logger.LogInformation("Stored {Count} notifications", items.Count);
}
}