Make progressive achievements get notifications when complete

This commit is contained in:
2026-08-21 17:02:12 +10:00
parent 3ae1e75275
commit c0b8d10add
2 changed files with 3 additions and 2 deletions
@@ -98,7 +98,8 @@ class AchievementService
->where('achievement_id', $achievement->id)
->first();
$alreadyUnlocked = $existing !== null;
$alreadyUnlocked = $existing !== null
&& (! $achievement->progressive || $existing->progress >= $achievement->threshold);
UserAchievement::updateOrCreate(
['user_id' => $user->id, 'achievement_id' => $achievement->id],
+1 -1
View File
@@ -67,7 +67,7 @@ return Application::configure(basePath: dirname(__DIR__))
'message' => 'You don\'t have permission to access this page.',
],
404 => [
'title' => 'You Flight Has Been Cancelled',
'title' => 'Your Flight Has Been Cancelled',
'message' => 'The page you are looking for doesn\'t exist or has been moved.',
],
419 => [