Update retrieval of applications and services in Deploy controller

This commit is contained in:
Andras Bacsai 2024-02-06 07:21:06 +01:00
parent 9b9e5e939c
commit 6869c582ff

View File

@ -73,8 +73,8 @@ public function by_tags(string $tags, int $team_id, bool $force = false)
$message->push("Tag {$tag} not found.");
continue;
}
$applications = $found_tag->applications();
$services = $found_tag->services();
$applications = $found_tag->applications()->get();
$services = $found_tag->services()->get();
if ($applications->count() === 0 && $services->count() === 0) {
$message->push("No resources found for tag {$tag}.");
continue;