Skip to content

Commit

Permalink
Fixed wrong call to setMailjetId
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Jun 14, 2020
1 parent 07cee38 commit 8e8744f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.3</version>
<version>1.3.1</version>
<author>
<name>Benjamin Perche, Franck Allimant</name>
<email>[email protected], [email protected]</email>
Expand Down
2 changes: 1 addition & 1 deletion EventListeners/NewsletterListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function apiAddUser(NewsletterEvent $event, $function)

$model = new MailjetNewsletter();
$model
->setMailjetId($data["Data"][0]["ID"])
->setRelationId($data["Data"][0]["ID"])
->setEmail($event->getEmail())
->save();
}
Expand Down

0 comments on commit 8e8744f

Please sign in to comment.