Rollback for ninja mailer

This commit is contained in:
David Bomba 2022-01-23 17:36:07 +11:00
parent 51f04058df
commit 56186840f2

View File

@ -211,10 +211,10 @@ class NinjaMailerJob implements ShouldQueue
} }
//17-01-2022 - ensure we have a token otherwise we fail gracefully to default sending engine //17-01-2022 - ensure we have a token otherwise we fail gracefully to default sending engine
if(strlen($user->oauth_user_token) == 0){ // if(strlen($user->oauth_user_token) == 0){
$this->nmo->settings->email_sending_method = 'default'; // $this->nmo->settings->email_sending_method = 'default';
return $this->setMailDriver(); // return $this->setMailDriver();
} // }
$google->getClient()->setAccessToken(json_encode($user->oauth_user_token)); $google->getClient()->setAccessToken(json_encode($user->oauth_user_token));