Fix some stuff
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user