From c7ae8e0f3f1e4bf8c2562a539311c2508b460fe8 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Wed, 7 Aug 2024 21:45:21 +0200 Subject: [PATCH] Fixes and TODO --- README.md | 1 + app/Jobs/ScheduleNextMaintenance.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb93bda..af0e460 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app/Jobs/ScheduleNextMaintenance.php b/app/Jobs/ScheduleNextMaintenance.php index 12700c1..f24463e 100644 --- a/app/Jobs/ScheduleNextMaintenance.php +++ b/app/Jobs/ScheduleNextMaintenance.php @@ -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,