Simplify infrastructure services and move all recurring jobs to Hangfire
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Mediator;
|
||||
using Musify.Application.UploadIntents;
|
||||
|
||||
namespace Musify.Infrastructure.Jobs;
|
||||
|
||||
public class TempUploadsCleanupJob(IMediator mediator)
|
||||
{
|
||||
public async Task RunAsync(CancellationToken cancellationToken) =>
|
||||
await mediator.Send(new DeleteStaleTempUploadsCommand(), cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user