Implement registry update

This commit is contained in:
2025-11-01 19:55:37 +09:00
parent 737e581f75
commit a9fd99bab8
4 changed files with 56 additions and 3 deletions

View File

@ -122,6 +122,17 @@ namespace Hcs.WebApp.Services
}
}
public async Task SetOperationEndedAsync(HcsDbContext context, int operationId)
{
var operation = await context.Operations.FirstOrDefaultAsync(x => x.Id == operationId);
if (operation != null)
{
operation.EndedAt = DateTime.UtcNow;
await context.SaveChangesAsync();
}
}
public async Task SetOperationEndedWithFailAsync(int operationId, string failureReason)
{
using var context = GetNewContext();