3 Commits

Author SHA1 Message Date
th.guenther 551b592b3b Fix 2026-05-24 20:06:01 +02:00
th.guenther 6ed0a5b93a DB update 2026-05-23 21:42:21 +02:00
th.guenther 97fd7cd0da Merge pull request 'Small design improvements' (#5) from dev-4.3.1 into main
Small design Improvements
2026-05-23 21:40:54 +02:00
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -40,8 +40,9 @@ class CronTaskHandleProvider extends CommonController
// --- Daily Tasks ---
if ($task->execution_type === CronTaskType::CRON_TASK_TYPE_DAILY) {
$tenantLastRun = $task->last_run;
if (is_array($tenantLastRun)) {
$tenantLastRun = $tenantLastRun[$tenant->slug] ?? null;
if ($tenantLastRun !== null) {
$tenantLastRun = Carbon::parse($tenantLastRun[$tenant->slug]) ?? null;
} else {
$tenantLastRun = null;
}
@@ -20,7 +20,7 @@ return new class extends Migration {
$table->string('name')->unique();
$table->string('execution_type');
$table->time('schedule_time')->nullable();
$table->timestamp('last_run')->nullable();
$table->json('last_run')->nullable();
$table->timestamps();
$table->foreign('execution_type')->references('slug')->on('cron_task_types')->cascadeOnDelete()->cascadeOnUpdate();