22 lines
404 B
PHP
22 lines
404 B
PHP
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Services\Article\ArticleFetcher;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Queue\Queueable;
|
|
|
|
class RefreshArticlesJob implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->onQueue('lemmy-posts');
|
|
}
|
|
|
|
public function handle(): void
|
|
{
|
|
ArticleFetcher::getNewArticles();
|
|
}
|
|
}
|