From 438d5bc857575d9fccfff435f9bc2d0bfa926a19 Mon Sep 17 00:00:00 2001 From: Wes Copeland Date: Fri, 24 Nov 2023 14:15:14 -0500 Subject: [PATCH] fix: correctly dispatch AchievementPublished and AchievementUnpublished (#2055) --- app/Helpers/database/achievement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/database/achievement.php b/app/Helpers/database/achievement.php index 6f23983c68..ba3f5738f6 100644 --- a/app/Helpers/database/achievement.php +++ b/app/Helpers/database/achievement.php @@ -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) {