Skip to content

Commit

Permalink
Add check before sync for user status when new profile created
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferhan ISMAILOV committed Sep 25, 2019
1 parent bf123ca commit ac3a997
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 ac3a997

Please sign in to comment.