Compare commits
3 Commits
dev-4.3.1
...
551b592b3b
| Author | SHA1 | Date | |
|---|---|---|---|
| 551b592b3b | |||
| 6ed0a5b93a | |||
| 97fd7cd0da |
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user