mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:58:50 -05:00 
			
		
		
		
	
						commit
						b8aa11ec85
					
				@ -270,7 +270,6 @@ class PreviewController extends BaseController
 | 
			
		||||
            DB::connection(config('database.default'))->rollBack();
 | 
			
		||||
 | 
			
		||||
            if (request()->query('html') == 'true') {
 | 
			
		||||
                DB::purge(config('database.default'));
 | 
			
		||||
                return $maker->getCompiledHTML;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -279,8 +278,6 @@ class PreviewController extends BaseController
 | 
			
		||||
        catch(\Exception $e){
 | 
			
		||||
 | 
			
		||||
            DB::connection(config('database.default'))->rollBack();
 | 
			
		||||
            DB::purge(config('database.default'));
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -304,7 +301,6 @@ class PreviewController extends BaseController
 | 
			
		||||
                         ->batch();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            DB::purge(config('database.default'));
 | 
			
		||||
 | 
			
		||||
        $response = Response::make($file_path, 200);
 | 
			
		||||
        $response->header('Content-Type', 'application/pdf');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user