mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 11:03:34 -05:00 
			
		
		
		
	Minor fixes for logging
This commit is contained in:
		
							parent
							
								
									ab45c40648
								
							
						
					
					
						commit
						5140046cb6
					
				@ -37,13 +37,14 @@ class VersionCheck implements ShouldQueue
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        $version_file = trim(@file_get_contents(config('ninja.version_url')));
 | 
					        $version_file = trim(@file_get_contents(config('ninja.version_url')));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        nlog("latest version = {$version_file}");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (Ninja::isSelfHost() && $version_file) {
 | 
					        if (Ninja::isSelfHost() && $version_file) {
 | 
				
			||||||
            Account::whereNotNull('id')->update(['latest_version' => $version_file]);
 | 
					            Account::whereNotNull('id')->update(['latest_version' => $version_file]);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (Ninja::isSelfHost()) {
 | 
					        if (Ninja::isSelfHost()) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            nlog("latest version = {$version_file}");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $account = Account::first();
 | 
					            $account = Account::first();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (! $account) {
 | 
					            if (! $account) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user