Some more fixing of processing leveling correctly and challenge processing adding the progress to the wrong user.

This commit is contained in:
Vari
2024-03-06 21:16:34 +01:00
parent 34f40d6dbc
commit 80e736d878
5 changed files with 48 additions and 9 deletions

View File

@@ -90,9 +90,9 @@ public function executeChallengeProgressionBatch(ExecuteChallengeProgressionBatc
continue;
if($operation['operationName'] === 'complete')
$this->setChallengeAsCompleted($challengeId, $user);
$this->setChallengeAsCompleted($challengeId, $progressUser);
else
$this->addProgressToChallenge($challengeId, round($operation['operationData']['value']), $user);
$this->addProgressToChallenge($challengeId, round($operation['operationData']['value']), $progressUser);
$processedChallenges[] = $challengeId;
}
}