mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 12:17:32 -04:00 
			
		
		
		
	Always email check data results
This commit is contained in:
		
							parent
							
								
									63e73953c5
								
							
						
					
					
						commit
						cca4e47eab
					
				| @ -73,16 +73,14 @@ class CheckData extends Command { | ||||
|         $this->logMessage('Done'); | ||||
|         $errorEmail = env('ERROR_EMAIL'); | ||||
| 
 | ||||
|         if ( ! $this->isValid) { | ||||
|             if ($errorEmail) { | ||||
|                 Mail::raw($this->log, function ($message) use ($errorEmail) { | ||||
|                     $message->to($errorEmail) | ||||
|                             ->from(CONTACT_EMAIL) | ||||
|                             ->subject('Check-Data'); | ||||
|                 }); | ||||
|             } else { | ||||
|                 $this->info($this->log); | ||||
|             } | ||||
|         if ($errorEmail) { | ||||
|             Mail::raw($this->log, function ($message) use ($errorEmail) { | ||||
|                 $message->to($errorEmail) | ||||
|                         ->from(CONTACT_EMAIL) | ||||
|                         ->subject('Check-Data'); | ||||
|             }); | ||||
|         } else { | ||||
|             $this->info($this->log); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user