mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 17:37:31 -04:00 
			
		
		
		
	
						commit
						2756ae76e7
					
				| @ -131,8 +131,8 @@ class EmailController extends BaseController | |||||||
|                  |                  | ||||||
|                 $entity_obj->service()->markSent()->save(); |                 $entity_obj->service()->markSent()->save(); | ||||||
| 
 | 
 | ||||||
|                 EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data) |                 EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data); | ||||||
|                             ->delay(now()->addSeconds(30)); |                             // ->delay(now()->addSeconds(30));
 | ||||||
|                  |                  | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -107,10 +107,6 @@ class TemplateEmail extends Mailable | |||||||
|                 $message->invitation = $this->invitation; |                 $message->invitation = $this->invitation; | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             /*TODO insert another check here for whether the attachment exists */ |  | ||||||
|             nlog($this->build_email->getAttachments()); |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|             foreach ($this->build_email->getAttachments() as $file) { |             foreach ($this->build_email->getAttachments() as $file) { | ||||||
| 
 | 
 | ||||||
|                 if(is_string($file)) |                 if(is_string($file)) | ||||||
|  | |||||||
| @ -33,10 +33,6 @@ trait Uploadable | |||||||
|         if ($file) { |         if ($file) { | ||||||
|             $path = UploadAvatar::dispatchNow($file, $company->company_key); |             $path = UploadAvatar::dispatchNow($file, $company->company_key); | ||||||
| 
 | 
 | ||||||
|             //$path = str_replace(config("ninja.app_url"), "", $path);
 |  | ||||||
| 
 |  | ||||||
|             info("the path {$path}"); |  | ||||||
| 
 |  | ||||||
|             if ($path) { |             if ($path) { | ||||||
|                 $settings = $entity->settings; |                 $settings = $entity->settings; | ||||||
|                 $settings->company_logo = $path; |                 $settings->company_logo = $path; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user