Fix some stuff

This commit is contained in:
2025-10-28 16:57:25 +09:00
parent 1a097a8f7b
commit 3bd7341ecc
6 changed files with 19 additions and 26 deletions

View File

@ -17,7 +17,7 @@ namespace Hcs.WebApp.Services
return await context.Operations.CountAsync(x => x.CampaignId == campaignId && !x.EndedAt.HasValue) > 0;
}
public async Task<IEnumerable<Campaign>> GetInitiatedCampaignAsync()
public async Task<IEnumerable<Campaign>> GetNotEndedCampaignsAsync()
{
using var context = GetNewContext();
return await (from campaign in context.Campaigns
@ -29,7 +29,7 @@ namespace Hcs.WebApp.Services
{
using var context = GetNewContext();
return await (from operation in context.Operations
where !operation.EndedAt.HasValue && string.IsNullOrEmpty(operation.MessageGuid)
where string.IsNullOrEmpty(operation.MessageGuid)
select operation).ToListAsync();
}