IPeriodic non-generic

This commit is contained in:
2025-07-02 21:12:24 +02:00
parent 91c91e4989
commit 6cd836540a
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ using API.Schema.NotificationsContext;
namespace API.Workers;
public class SendNotificationsWorker(IServiceScope scope, IEnumerable<BaseWorker>? dependsOn = null)
: BaseWorkerWithContext<NotificationsContext>(scope, dependsOn), IPeriodic<SendNotificationsWorker>
: BaseWorkerWithContext<NotificationsContext>(scope, dependsOn), IPeriodic
{
public DateTime LastExecution { get; set; } = DateTime.UtcNow;
public TimeSpan Interval { get; set; } = TimeSpan.FromMinutes(1);