Implement houses export manager
This commit is contained in:
@ -36,6 +36,16 @@ namespace Hcs.WebApp.Services
|
||||
return result.Where(x => x.Kind == Operation.OperationKind.Remote);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Operation>> GetNotExecutedRemoteOperationsAsync(int campaignId)
|
||||
{
|
||||
using var context = GetNewContext();
|
||||
var query = from operation in context.Operations
|
||||
where string.IsNullOrEmpty(operation.MessageGuid) && !operation.EndedAt.HasValue && operation.CampaignId == campaignId
|
||||
select operation;
|
||||
var result = await query.ToListAsync();
|
||||
return result.Where(x => x.Kind == Operation.OperationKind.Remote);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Operation>> GetResultWaitingRemoteOperationsAsync()
|
||||
{
|
||||
using var context = GetNewContext();
|
||||
|
||||
Reference in New Issue
Block a user