Added sockets for notifications
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Services\Achievements;
|
||||
|
||||
use App\Events\NotificationCreated;
|
||||
use App\Models\Achievement;
|
||||
use App\Models\Notification;
|
||||
use App\Models\User;
|
||||
@@ -50,6 +51,8 @@ class AchievementService
|
||||
$this->user = $user;
|
||||
$this->achievementCache = Achievement::all()->keyBy('internal_name');
|
||||
|
||||
// In calculateAchievements (or wherever createAchievementNotification is called from)
|
||||
\Log::info('calculateAchievements running for user ' . $user->id);
|
||||
// Load once with every relationship any checker could need
|
||||
$this->flights = $user->flights()->with([
|
||||
'airline.alliance',
|
||||
|
||||
Reference in New Issue
Block a user