Correction d'une erreur sur le tweetnews

This commit is contained in:
hugol
2024-11-17 18:38:53 +01:00
parent 1e1037e118
commit edeac76a71

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Jobs\ProcessNews;
use App\Jobs\ProcessTweet; use App\Jobs\ProcessTweet;
use App\Models\Account; use App\Models\Account;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
@@ -285,7 +286,7 @@ class AccountController extends Controller
$accounts = Account::where('enable', true)->get(); $accounts = Account::where('enable', true)->get();
foreach($accounts as $user){ foreach($accounts as $user){
ProcessTweet::dispatch($user->id, 0); ProcessNews::dispatch($user->id);
} }
} }
} }