fix: cleanup scheduled tasks

This commit is contained in:
Andras Bacsai
2024-02-14 15:14:06 +01:00
parent 8f21ea9367
commit 1f18542960
5 changed files with 21 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ class DeleteService
foreach ($service->databases()->get() as $database) {
$database->forceDelete();
}
foreach ($service->scheduled_tasks as $task) {
$task->delete();
}
$service->tags()->detach();
}
}