Small improvements
This commit is contained in:
@@ -28,7 +28,6 @@ class ProductionDataSeeder {
|
|||||||
$this->installParticipationFeeTypes();
|
$this->installParticipationFeeTypes();
|
||||||
$this->installParticipationTypes();
|
$this->installParticipationTypes();
|
||||||
$this->installEfzStatus();
|
$this->installEfzStatus();
|
||||||
$this->installCronTasks();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function installEfzStatus() {
|
private function installEfzStatus() {
|
||||||
@@ -140,12 +139,5 @@ class ProductionDataSeeder {
|
|||||||
CronTaskType::create(['slug' => CronTaskType::CRON_TASK_TYPE_REALTIME]);
|
CronTaskType::create(['slug' => CronTaskType::CRON_TASK_TYPE_REALTIME]);
|
||||||
CronTaskType::create(['slug' => CronTaskType::CRON_TASK_TYPE_DAILY]);
|
CronTaskType::create(['slug' => CronTaskType::CRON_TASK_TYPE_DAILY]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function installCronTasks() {
|
|
||||||
CronTask::create(['name' => 'UploadInvoices', 'execution_type' => CronTaskType::CRON_TASK_TYPE_REALTIME]);
|
|
||||||
CronTask::create(['name' => 'CloseCostUnit', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:05']);
|
|
||||||
CronTask::create(['name' => 'CloseEvent', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:10']);
|
|
||||||
CronTask::create(['name' => 'NotifyTeam', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '20:00']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Installer\Providers;
|
namespace App\Installer\Providers;
|
||||||
|
|
||||||
|
use App\Enumerations\CronTaskType;
|
||||||
|
use App\Models\CronTask;
|
||||||
use App\Models\Tenant;
|
use App\Models\Tenant;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
|
||||||
@@ -9,6 +11,7 @@ class BdpLvSachsenDataSeeder {
|
|||||||
public function execute() {
|
public function execute() {
|
||||||
$this->installTenants();
|
$this->installTenants();
|
||||||
$this->installUsers();
|
$this->installUsers();
|
||||||
|
$this->installCronTasks();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function installTenants()
|
private function installTenants()
|
||||||
@@ -258,4 +261,11 @@ class BdpLvSachsenDataSeeder {
|
|||||||
User::create($userData);
|
User::create($userData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function installCronTasks() {
|
||||||
|
CronTask::create(['name' => 'UploadInvoices', 'execution_type' => CronTaskType::CRON_TASK_TYPE_REALTIME]);
|
||||||
|
CronTask::create(['name' => 'CloseCostUnit', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:05']);
|
||||||
|
CronTask::create(['name' => 'CloseEvent', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:10']);
|
||||||
|
CronTask::create(['name' => 'NotifyTeam', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '20:00']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user