fedi-feed-router/app/Jobs/RefreshArticlesJob.php

23 lines
404 B
PHP
Raw Permalink Normal View History

2025-07-03 21:16:22 +02:00
<?php
namespace App\Jobs;
2025-07-03 21:34:39 +02:00
use App\Services\Article\ArticleFetcher;
2025-07-03 21:16:22 +02:00
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
{
2025-07-03 21:34:39 +02:00
ArticleFetcher::getNewArticles();
2025-07-03 21:16:22 +02:00
}
}