fedi-feed-router/backend/routes/console.php

12 lines
338 B
PHP
Raw Normal View History

2025-06-29 08:50:03 +02:00
<?php
2025-06-29 09:37:49 +02:00
use App\Console\Commands\FetchNewArticlesCommand;
2025-06-30 19:54:43 +02:00
use App\Jobs\SyncChannelPostsJob;
2025-06-29 09:37:49 +02:00
use Illuminate\Support\Facades\Schedule;
2025-06-29 08:50:03 +02:00
2025-06-29 18:34:13 +02:00
Schedule::command(FetchNewArticlesCommand::class)->hourly();
2025-06-30 18:18:30 +02:00
2025-06-30 19:54:43 +02:00
Schedule::call(function () {
2025-07-05 18:26:04 +02:00
SyncChannelPostsJob::dispatchForAllActiveChannels();
2025-06-30 19:54:43 +02:00
})->everyTenMinutes()->name('sync-lemmy-channel-posts');