Fix wrong progress
This commit is contained in:
@ -45,7 +45,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
protected async Task ProgressStepAsync(HcsDbContext context, int step)
|
||||
{
|
||||
campaign.Step = step;
|
||||
campaign.Progress = (step + 1) / StepCount;
|
||||
campaign.Progress = Convert.ToInt32(((step + 1) / (float)StepCount * 100));
|
||||
await HeadquartersService.UpdateCampaignStepAndProgressAsync(context, campaign);
|
||||
|
||||
OnCampaignProgressStep?.Invoke(campaign);
|
||||
|
||||
Reference in New Issue
Block a user