Fixes and TODO

This commit is contained in:
JonatanRek 2024-08-07 21:45:21 +02:00
parent 702a1e7d46
commit c7ae8e0f3f
2 changed files with 2 additions and 1 deletions

View File

@ -14,3 +14,4 @@ export TAG="0.0.1" && echo "$TAG" > "./public/version.txt" && sudo docker build
* Maintenance Relations
* Shippable servers in maintenance
* Zakazníci
* Možnost comentáže pokud skipneš host/task require comment

View File

@ -45,7 +45,7 @@ class ScheduleNextMaintenance implements ShouldQueue
'host_id' => $host->id
]);
$tasks = $maintenance->tasks;
$tasks = $maintenance->hosts->find($host->id)->tasks;
foreach ($tasks as $key => $task) {
$maintenancePlannedHost->historyTasks()->create([
'maintenance_task_id' => $task->id,