Skip to content

Commit

Permalink
Merge pull request #59 from mailjet/develop
Browse files Browse the repository at this point in the history
Add check before sync for user status when new profile created
  • Loading branch information
Ferhan Ismailov authored Sep 25, 2019
2 parents c69ce22 + ac3a997 commit 337ab61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mailjet.module
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ function processCustomFields($user)
* The User object.
*/
function mailjet_user_insert(User $user) {
mailjet_sync_single_user($user, 'add');
if ($user->get('status')->value > 0) {
mailjet_sync_single_user($user, 'add');
}
}


Expand Down

0 comments on commit 337ab61

Please sign in to comment.