From edeac76a71c22bade2a3e1225f703182136f55b0 Mon Sep 17 00:00:00 2001 From: hugol Date: Sun, 17 Nov 2024 18:38:53 +0100 Subject: [PATCH] Correction d'une erreur sur le tweetnews --- app/Http/Controllers/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 3aedb2d..8362cd5 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use App\Jobs\ProcessNews; use App\Jobs\ProcessTweet; use App\Models\Account; use Illuminate\Support\Facades\Cache; @@ -285,7 +286,7 @@ class AccountController extends Controller $accounts = Account::where('enable', true)->get(); foreach($accounts as $user){ - ProcessTweet::dispatch($user->id, 0); + ProcessNews::dispatch($user->id); } } }