Compare commits

...

5 Commits

Author SHA1 Message Date
KodeStar
9bc9c48e06 Localhost doesn't like the certificate so ignore the warning 2022-03-30 13:14:35 +01:00
KodeStar
9a6dd623db add tag_id to fillable to try and fix #810 2022-03-30 13:14:05 +01:00
Kode
d1c6001fae update app version 2022-03-26 19:01:11 +00:00
Kode
74196a2bfa Check if class exists before checking if it's a search provider 2022-03-26 18:59:49 +00:00
Kode
724110dad2 Run ProcessApps when database version is bumped 2022-03-25 15:35:05 +00:00
4 changed files with 8 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ class Item extends Model
//
protected $fillable = [
'title', 'url', 'colour', 'icon', 'appdescription', 'description', 'pinned', 'order', 'type', 'class', 'user_id', 'appid',
'title', 'url', 'colour', 'icon', 'appdescription', 'description', 'pinned', 'order', 'type', 'class', 'user_id', 'tag_id', 'appid',
];
@@ -169,7 +169,7 @@ class Item extends Model
public static function isEnhanced($class)
{
if ($class === null || $class === 'null') {
if (!class_exists($class) || $class === null || $class === 'null') {
return false;
}
$app = new $class;
@@ -179,6 +179,9 @@ class Item extends Model
public static function isSearchProvider($class)
{
if (!class_exists($class) || $class === null || $class === 'null') {
return false;
}
$app = new $class;
return ((bool) ($app instanceof \App\SearchInterface)) ? $app : false;

View File

@@ -39,6 +39,7 @@ class AppServiceProvider extends ServiceProvider
$app_version = config('app.version');
if (version_compare($app_version, $db_version) == 1) { // app is higher than db, so need to run migrations etc
Artisan::call('migrate', ['--path' => 'database/migrations', '--force' => true, '--seed' => true]);
ProcessApps::dispatch();
}
} else {
Artisan::call('migrate', ['--path' => 'database/migrations', '--force' => true, '--seed' => true]);

View File

@@ -113,7 +113,7 @@ abstract class SupportedApps
{
// $list_url = 'https://apps.heimdall.site/list';
$list_url = config('app.appsource').'list.json';
$client = new Client(['http_errors' => false, 'timeout' => 15, 'connect_timeout' => 15]);
$client = new Client(['http_errors' => false, 'verify' => false, 'timeout' => 15, 'connect_timeout' => 15]);
return $client->request('GET', $list_url);
}

View File

@@ -14,7 +14,7 @@ return [
*/
'name' => env('APP_NAME', 'Heimdall'),
'version' => '2.4.7',
'version' => '2.4.9',
/*
|--------------------------------------------------------------------------