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."); $message->push("Tag {$tag} not found.");
continue; continue;
} }
$applications = $found_tag->applications(); $applications = $found_tag->applications()->get();
$services = $found_tag->services(); $services = $found_tag->services()->get();
if ($applications->count() === 0 && $services->count() === 0) { if ($applications->count() === 0 && $services->count() === 0) {
$message->push("No resources found for tag {$tag}."); $message->push("No resources found for tag {$tag}.");
continue; continue;