Skip to content

Commit

Permalink
Fix issues with undefined method. Update library version
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Jul 6, 2022
1 parent 43f827b commit f1c2ab5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": "^7.1.3|^8.0",
"laravel/framework": "~5.1|^6.0|^7.0|^8.0|^9.0",
"mailjet/mailjet-apiv3-php": "^1.2",
"mailjet/mailjet-apiv3-php": "^1.5.6",
"symfony/mailjet-mailer": "^6.0"
},
"require-dev": {
Expand Down
Binary file removed composer.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Services/ContactsListService.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function updateEmail(string $id, Contact $contact, string $oldEmail): arr
$oldContactData = $response->getData();

if (isset($oldContactData[0])) {
$contact->setProperties($oldContactData[0]['Data']);
$contact->setOptionalProperties($oldContactData[0]['Data']);
}

$contact->setAction(Contact::ACTION_ADDFORCE);
Expand Down

0 comments on commit f1c2ab5

Please sign in to comment.