Fix: Job to check invoice due dates was never run

Made it a command so it runs with the scheduler
This commit is contained in:
2026-03-05 10:42:40 +01:00
parent 4ee1d01e38
commit c470240dc0
8 changed files with 82 additions and 63 deletions
+10 -1
View File
@@ -14,6 +14,7 @@ class Kernel extends ConsoleKernel
*/
protected $commands = [
\App\Console\Commands\CaldavSyncCommand::class,
\App\Console\Commands\CheckInvoiceDueDatesCommand::class,
];
/**
@@ -21,6 +22,14 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('caldav:sync')
->everyMinute()
->withoutOverlapping();
// Run synchronously on schedule to support environments without queue workers
$schedule->command('invoices:check-due')
->dailyAt('3:00')
->withoutOverlapping();
}
/**
@@ -32,4 +41,4 @@ protected function commands(): void
require base_path('routes/console.php');
}
}
}