Add parse operation graceful completion
This commit is contained in:
@ -27,6 +27,11 @@ namespace Hcs.WebApp.Services
|
||||
return fileToParse;
|
||||
}
|
||||
|
||||
public async Task<FileToParse> GetFileToParseByOperationIdAsync(HcsDbContext context, int operationId)
|
||||
{
|
||||
return await context.FilesToParse.SingleAsync(x => x.LastParseOperationId == operationId);
|
||||
}
|
||||
|
||||
public async Task SetOperationToFileToParseAsync(HcsDbContext context, int fileToParseId, Operation operation)
|
||||
{
|
||||
var fileToParse = await context.FilesToParse.FirstOrDefaultAsync(x => x.Id == fileToParseId);
|
||||
|
||||
Reference in New Issue
Block a user