mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(archival): ♻ make Hangfire using conditional
This commit is contained in:
parent
0d1a7a2f96
commit
18444c0117
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@
|
|||
using FilterLists.Archival.Application.Commands;
|
||||
using FilterLists.Archival.Infrastructure;
|
||||
using FilterLists.Archival.Infrastructure.Scheduling;
|
||||
using Hangfire;
|
||||
using MediatR;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
|
@ -37,7 +36,7 @@ private static void ScheduleArchival(this IApplicationBuilder app)
|
|||
#if DEBUG
|
||||
new EnqueueArchiveAllLists.Command().EnqueueBackgroundJob();
|
||||
#else
|
||||
new EnqueueArchiveAllLists.Command().AddOrUpdateRecurringJob(Cron.Daily);
|
||||
new EnqueueArchiveAllLists.Command().AddOrUpdateRecurringJob(Hangfire.Cron.Daily);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue