mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:57:32 -05:00 
			
		
		
		
	v5.1.42
This commit is contained in:
		
							parent
							
								
									da3a59d6bf
								
							
						
					
					
						commit
						5f7f18840f
					
				@ -1 +1 @@
 | 
				
			|||||||
5.1.41
 | 
					5.1.42
 | 
				
			||||||
@ -16,6 +16,7 @@ use Cz\Git\GitException;
 | 
				
			|||||||
use Cz\Git\GitRepository;
 | 
					use Cz\Git\GitRepository;
 | 
				
			||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
 | 
					use Illuminate\Foundation\Bus\DispatchesJobs;
 | 
				
			||||||
use Illuminate\Support\Facades\Artisan;
 | 
					use Illuminate\Support\Facades\Artisan;
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Artisan;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SelfUpdateController extends BaseController
 | 
					class SelfUpdateController extends BaseController
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -69,8 +70,21 @@ class SelfUpdateController extends BaseController
 | 
				
			|||||||
        $output = '';
 | 
					        $output = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try {
 | 
					        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');
 | 
					            $output = $repo->execute('pull origin');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } catch (GitException $e) {
 | 
					        } catch (GitException $e) {
 | 
				
			||||||
 | 
				
			|||||||
@ -361,6 +361,7 @@ class WebhookController extends BaseController
 | 
				
			|||||||
        $webhook->user_id = auth()->user()->id;
 | 
					        $webhook->user_id = auth()->user()->id;
 | 
				
			||||||
        $webhook->event_id = $event_id;
 | 
					        $webhook->event_id = $event_id;
 | 
				
			||||||
        $webhook->target_url = $target_url;
 | 
					        $webhook->target_url = $target_url;
 | 
				
			||||||
 | 
					        $webhook->fill($request->all());
 | 
				
			||||||
        $webhook->save();
 | 
					        $webhook->save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (! $webhook->id) {
 | 
					        if (! $webhook->id) {
 | 
				
			||||||
 | 
				
			|||||||
@ -14,7 +14,7 @@ return [
 | 
				
			|||||||
    'require_https' => env('REQUIRE_HTTPS', true),
 | 
					    'require_https' => env('REQUIRE_HTTPS', true),
 | 
				
			||||||
    'app_url' => rtrim(env('APP_URL', ''), '/'),
 | 
					    'app_url' => rtrim(env('APP_URL', ''), '/'),
 | 
				
			||||||
    'app_domain' => env('APP_DOMAIN', ''),
 | 
					    'app_domain' => env('APP_DOMAIN', ''),
 | 
				
			||||||
    'app_version' => '5.1.41',
 | 
					    'app_version' => '5.1.42',
 | 
				
			||||||
    'minimum_client_version' => '5.0.16',
 | 
					    'minimum_client_version' => '5.0.16',
 | 
				
			||||||
    'terms_version' => '1.0.1',
 | 
					    'terms_version' => '1.0.1',
 | 
				
			||||||
    'api_secret' => env('API_SECRET', false),
 | 
					    'api_secret' => env('API_SECRET', false),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user