Implement houses export manager

This commit is contained in:
2025-11-25 11:43:23 +09:00
parent 0707e9ccdc
commit 0215abd6ec
2 changed files with 154 additions and 2 deletions

View File

@ -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();