update
This commit is contained in:
24
app/Jobs/UpdateLeaderboardsJob.php
Normal file
24
app/Jobs/UpdateLeaderboardsJob.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Services\LeaderboardService;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UpdateLeaderboardsJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public int $timeout = 1200;
|
||||
|
||||
public function handle(LeaderboardService $leaderboards): void
|
||||
{
|
||||
$leaderboards->refreshAll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user