This commit is contained in:
2026-03-20 11:57:16 +01:00
parent a10c8238f8
commit e02e1c5bc3
5 changed files with 46 additions and 46 deletions
@@ -31,11 +31,11 @@ namespace Musify.Infrastructure.Messaging.Consumers
logger.LogInformation("Created new job with id {JobId} for removing file {BucketName}/{KeyName}", job.Id, consumeContext.Message.BucketName, consumeContext.Message.KeyName);
}
var jobExecution = new JobExecution
var jobExecution = new JobOperation
{
JobId = job.Id
};
await database.JobExecutions.AddAsync(jobExecution, consumeContext.CancellationToken);
await database.JobOperations.AddAsync(jobExecution, consumeContext.CancellationToken);
var removeFile = await storageHandler.RemoveFileAsync(
consumeContext.Message.BucketName,