Remove require NPM/NODE from setup checks

This commit is contained in:
David Bomba 2020-08-29 23:32:11 +10:00
parent 3dde9e5eee
commit 32e987a1b2
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ class CompanyGateway extends BaseModel
if($this->gateway->provider == 'Stripe' && strpos($config->publishableKey, 'test')) if($this->gateway->provider == 'Stripe' && strpos($config->publishableKey, 'test'))
return true; return true;
if(property_exists($config, 'testMode') && $config->testMode) if($config && property_exists($config, 'testMode') && $config->testMode)
return true; return true;
return false; return false;

View File

@ -71,8 +71,8 @@ class SystemHealth
'env_writable' => self::checkEnvWritable(), 'env_writable' => self::checkEnvWritable(),
//'mail' => self::testMailServer(), //'mail' => self::testMailServer(),
'simple_db_check' => (bool) self::simpleDbCheck(), 'simple_db_check' => (bool) self::simpleDbCheck(),
'npm_status' => self::checkNpm(), //'npm_status' => self::checkNpm(),
'node_status' => self::checkNode(), //'node_status' => self::checkNode(),
]; ];
} }