Fix resource not found error and improve mass deployment process
This commit is contained in:
@@ -97,6 +97,9 @@ class Deploy extends Controller
|
||||
public function deploy_resource($resource, bool $force = false): Collection
|
||||
{
|
||||
$message = collect([]);
|
||||
if (gettype($resource) !== 'object') {
|
||||
return $message->push("Resource ($resource) not found.");
|
||||
}
|
||||
$type = $resource?->getMorphClass();
|
||||
if ($type === 'App\Models\Application') {
|
||||
queue_application_deployment(
|
||||
|
||||
Reference in New Issue
Block a user