From 3892ceff47c03e78092790c0ed5d017c783c1cd2 Mon Sep 17 00:00:00 2001 From: kyledoesdev Date: Thu, 7 Nov 2024 17:20:27 -0500 Subject: [PATCH] test without defer --- app/Http/Controllers/RankingDownloadController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/RankingDownloadController.php b/app/Http/Controllers/RankingDownloadController.php index 40b2fac..63cb10f 100644 --- a/app/Http/Controllers/RankingDownloadController.php +++ b/app/Http/Controllers/RankingDownloadController.php @@ -16,7 +16,8 @@ public function index(): JsonResponse ->with('songs', 'artist') ->get(); - defer(fn() => Notification::send(auth()->user(), new DownloadDataNotification($rankings))); + //defer(fn() => ); + Notification::send(auth()->user(), new DownloadDataNotification($rankings)); return response()->json([ 'success' => true,