mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Merge pull request #4918 from turbo124/v5-develop
Wire up settings in mailer job
This commit is contained in:
		
						commit
						1d7e3d0379
					
				@ -50,6 +50,8 @@ class GmailTransport extends Transport
 | 
			
		||||
    {
 | 
			
		||||
        /*We should nest the token in the message and then discard it as needed*/
 | 
			
		||||
 | 
			
		||||
        nlog("inside gmail sender with token {$this->token}");
 | 
			
		||||
 | 
			
		||||
        $this->beforeSendPerformed($message);
 | 
			
		||||
 | 
			
		||||
        $this->gmail->using($this->token);
 | 
			
		||||
 | 
			
		||||
@ -105,6 +105,8 @@ class NinjaMailerJob implements ShouldQueue
 | 
			
		||||
 | 
			
		||||
        $user = User::find($this->decodePrimaryKey($sending_user));
 | 
			
		||||
 | 
			
		||||
        nlog("Sending via {$user->present()->name()}");
 | 
			
		||||
 | 
			
		||||
        $google = (new Google())->init();
 | 
			
		||||
        $google->getClient()->setAccessToken(json_encode($user->oauth_user_token));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -76,8 +76,8 @@ class InvitationViewedListener implements ShouldQueue
 | 
			
		||||
        if (isset($invitation->company->slack_webhook_url)) {
 | 
			
		||||
            $notification->method = ['slack'];
 | 
			
		||||
 | 
			
		||||
            Notification::route('slack', $invitation->company->slack_webhook_url)
 | 
			
		||||
                        ->notify($notification);
 | 
			
		||||
            // Notification::route('slack', $invitation->company->slack_webhook_url)
 | 
			
		||||
            //             ->notify($notification);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user