Skip to content

Commit

Permalink
refactor: Update Class Name in CampaignTable
Browse files Browse the repository at this point in the history
Update the class name called from MilestoneUsersprogress to CampaignMilestoneUsersProgress
  • Loading branch information
AlexanderBlanchardAC committed Nov 11, 2024
1 parent 48812b0 commit 7338477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/web/services/Community/CampaignTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function launch() {

foreach ($milestones as $milestone) {
$milestoneComplete = $milestoneCompletionStatus[$milestone->id] ?? false;
$userProgress = MilestoneUsersProgress::getProgressByMilestoneId($milestone->id, $campaignId, $user->id);
$userProgress = CampaignMilestoneUsersProgress::getProgressByMilestoneId($milestone->id, $campaignId, $user->id);
$totalGoals = CampaignMilestone::getMilestoneGoalCountByCampaign($campaignId, $milestone->id);
$milestoneRewardGiven = MilestoneUsersProgress::getRewardGivenForMilestone($milestone->id, $user->id);
$milestoneRewardGiven = CampaignMilestoneUsersProgress::getRewardGivenForMilestone($milestone->id, $user->id);

//Calculate percentage progress
$percentageProgress = $totalGoals > 0 ? ($userProgress / $totalGoals) * 100 : 0;
Expand Down

0 comments on commit 7338477

Please sign in to comment.