From 0df672baaa10f11e2d3ead1721c7af555331e5d1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 27 Oct 2020 07:46:06 +1100 Subject: [PATCH] remove white space and carriage returns from version --- app/Jobs/Util/VersionCheck.php | 2 +- app/Models/Company.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Util/VersionCheck.php b/app/Jobs/Util/VersionCheck.php index 9662fa1b4136..9d04f9c3230a 100644 --- a/app/Jobs/Util/VersionCheck.php +++ b/app/Jobs/Util/VersionCheck.php @@ -34,7 +34,7 @@ class VersionCheck implements ShouldQueue */ public function handle() { - $version_file = file_get_contents(config('ninja.version_url')); + $version_file = trim(file_get_contents(config('ninja.version_url'))); info("latest version = {$version_file}"); diff --git a/app/Models/Company.php b/app/Models/Company.php index 3a001a9b8a3b..98e10abf485b 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -97,6 +97,8 @@ class Company extends BaseModel 'google_analytics_key', 'client_can_register', 'enable_shop_api', + 'invoice_task_timelog', + 'auto_start_tasks', ]; protected $hidden = [