Fix wrong progress

This commit is contained in:
2025-11-05 16:10:32 +09:00
parent 5fbea25110
commit cdec2d53d1

View File

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