mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:17:35 -05:00 
			
		
		
		
	Always email check data results
This commit is contained in:
		
							parent
							
								
									63e73953c5
								
							
						
					
					
						commit
						cca4e47eab
					
				@ -73,7 +73,6 @@ class CheckData extends Command {
 | 
				
			|||||||
        $this->logMessage('Done');
 | 
					        $this->logMessage('Done');
 | 
				
			||||||
        $errorEmail = env('ERROR_EMAIL');
 | 
					        $errorEmail = env('ERROR_EMAIL');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ( ! $this->isValid) {
 | 
					 | 
				
			||||||
        if ($errorEmail) {
 | 
					        if ($errorEmail) {
 | 
				
			||||||
            Mail::raw($this->log, function ($message) use ($errorEmail) {
 | 
					            Mail::raw($this->log, function ($message) use ($errorEmail) {
 | 
				
			||||||
                $message->to($errorEmail)
 | 
					                $message->to($errorEmail)
 | 
				
			||||||
@ -84,7 +83,6 @@ class CheckData extends Command {
 | 
				
			|||||||
            $this->info($this->log);
 | 
					            $this->info($this->log);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private function logMessage($str)
 | 
					    private function logMessage($str)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user