Installer fixes

This commit is contained in:
Nabeel Shahzad
2018-02-12 09:47:12 -06:00
parent ecfda6de15
commit c817d1ae4b
5 changed files with 29 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Services;
use DB;
use Log;
use PDO;
use Irazasyed\LaravelGAMP\Facades\GAMP;
@@ -32,7 +33,11 @@ class AnalyticsService
AnalyticsDimensions::DATABASE_VERSION
);
$gamp->sendPageview();
try {
$gamp->sendPageview();
} catch (\Exception $e) {
Log::error($e->getMessage());
}
}
}

View File

@@ -151,7 +151,7 @@ class UserService extends BaseService
# If their current rank is one they were assigned, then
# don't change away from it automatically.
if($user->rank->auto_promote === false) {
if($user->rank && $user->rank->auto_promote === false) {
return $user;
}