This commit is contained in:
David Bomba 2021-04-09 07:57:01 +10:00
parent da3a59d6bf
commit 5f7f18840f
4 changed files with 18 additions and 3 deletions

View File

@ -1 +1 @@
5.1.41
5.1.42

View File

@ -16,6 +16,7 @@ use Cz\Git\GitException;
use Cz\Git\GitRepository;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Artisan;
class SelfUpdateController extends BaseController
{
@ -69,8 +70,21 @@ class SelfUpdateController extends BaseController
$output = '';
try {
// $res = $repo->pull();
$cacheCompiled = base_path('bootstrap/cache/compiled.php');
if (file_exists($cacheCompiled)) { unlink ($cacheCompiled); }
$cacheServices = base_path('bootstrap/cache/services.php');
if (file_exists($cacheServices)) { unlink ($cacheServices); }
Artisan::call('clear-compiled');
Artisan::call('cache:clear');
Artisan::call('debugbar:clear');
Artisan::call('route:clear');
Artisan::call('view:clear');
Artisan::call('config:clear');
$output = $repo->execute('stash');
$output = $repo->execute('reset hard origin/v5-stable');
$output = $repo->execute('pull origin');
} catch (GitException $e) {

View File

@ -361,6 +361,7 @@ class WebhookController extends BaseController
$webhook->user_id = auth()->user()->id;
$webhook->event_id = $event_id;
$webhook->target_url = $target_url;
$webhook->fill($request->all());
$webhook->save();
if (! $webhook->id) {

View File

@ -14,7 +14,7 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', ''),
'app_version' => '5.1.41',
'app_version' => '5.1.42',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),