From 224cb5c55cbfc9b2839cdab779f7d5ebfe7bfe94 Mon Sep 17 00:00:00 2001 From: Aaron Bushnell Date: Sat, 27 Apr 2024 21:21:57 -0400 Subject: [PATCH] Ignore Craft when checking addons update --- composer.json | 2 +- src/console/controllers/SyncController.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3d31dd7..7878082 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "trendyminds/orbit-craft", "type": "craft-plugin", - "version": "1.0.4", + "version": "1.0.5", "license": "MIT", "authors": [ { diff --git a/src/console/controllers/SyncController.php b/src/console/controllers/SyncController.php index b0219fc..27adaf6 100644 --- a/src/console/controllers/SyncController.php +++ b/src/console/controllers/SyncController.php @@ -31,6 +31,7 @@ public function actionIndex(): int 'has_cms_update' => count($allUpdates->cms->releases) > 0, 'has_addons_update' => $updates ->filter(fn ($addon) => ! is_null($addon['latest_version'])) + ->filter(fn ($addon) => $addon['name'] !== 'craftcms/cms') ->isNotEmpty(), 'app' => [ 'environment' => App::env('CRAFT_ENVIRONMENT') ?? App::env('ENVIRONMENT'),