Skip to content

Commit

Permalink
fix: correctly dispatch AchievementPublished and AchievementUnpublish…
Browse files Browse the repository at this point in the history
…ed (#2055)
  • Loading branch information
wescopeland authored Nov 24, 2023
1 parent 88959be commit 438d5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/database/achievement.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function updateAchievementFlag(int|string|array $achID, int $newFlag): void

$achievements->update(['Flags' => $newFlag]);

$updatedAchievements = $achievements->get();
$updatedAchievements = Achievement::whereIn('ID', $achievementIDs)->get();

foreach ($updatedAchievements as $achievement) {
if ($newFlag === AchievementFlag::OfficialCore) {
Expand Down

0 comments on commit 438d5bc

Please sign in to comment.