Implement parse campaign manager

This commit is contained in:
2025-11-20 11:22:37 +09:00
parent 8fdb855d05
commit f3249da6d9
6 changed files with 121 additions and 11 deletions

View File

@ -26,5 +26,13 @@ namespace Hcs.WebApp.Services
await context.SaveChangesAsync();
return fileToParse;
}
public async Task SetOperationToFileToParseAsync(HcsDbContext context, int fileToParseId, Operation operation)
{
var fileToParse = await context.FilesToParse.FirstOrDefaultAsync(x => x.Id == fileToParseId);
fileToParse!.LastParseOperationId = operation.Id;
await context.SaveChangesAsync();
}
}
}