From 5dd412b1e4cb02ab18fc07018a72bff500d69ac7 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 14 Jul 2024 09:00:05 +0300 Subject: [PATCH 1/2] fix for setup error introduced with migration check --- app/Utils/SystemHealth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index f9505c22796a..c5ddc8eda895 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -89,7 +89,7 @@ class SystemHealth 'exchange_rate_api_not_configured' => (bool)self::checkCurrencySanity(), 'api_version' => (string) config('ninja.app_version'), 'is_docker' => (bool) config('ninja.is_docker'), - 'pending_migrations' => self::checkPendingMigrations(), + 'pending_migrations' => (bool) ($check_file_system ? self::checkPendingMigrations() : ''), ]; } From 24b3a4df35f511d7c17b4abb3820b20e9c9e95c2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 14 Jul 2024 09:14:58 +0300 Subject: [PATCH 2/2] fix for setup error introduced with migration check --- app/Utils/SystemHealth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index c5ddc8eda895..6dfbaf0562e9 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -89,7 +89,7 @@ class SystemHealth 'exchange_rate_api_not_configured' => (bool)self::checkCurrencySanity(), 'api_version' => (string) config('ninja.app_version'), 'is_docker' => (bool) config('ninja.is_docker'), - 'pending_migrations' => (bool) ($check_file_system ? self::checkPendingMigrations() : ''), + 'pending_migrations' => (bool) ($check_file_system ? self::checkPendingMigrations() : false), ]; }