diff --git a/composer.json b/composer.json index 2147e9d..52b89a0 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/composer.phar b/composer.phar deleted file mode 100755 index 1574d12..0000000 Binary files a/composer.phar and /dev/null differ diff --git a/src/Services/ContactsListService.php b/src/Services/ContactsListService.php index f101297..1630dec 100644 --- a/src/Services/ContactsListService.php +++ b/src/Services/ContactsListService.php @@ -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);