You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the ContactListService.updateEmail() method to update the emails of users on my list. But since updating to Laravel 9 and the the latest client version (3.0.2) this is failing each time with the error:
Call to undefined method Mailjet\LaravelMailjet\Model\Contact::setProperties() It's failing on in this part
When I look at the Contact model and it looks like it doesn't have a setProperties method so this error makes sense. Perhaps it needs to be setOptionalProperties instead?
Seems like a bug in the code that needs fixed?
The text was updated successfully, but these errors were encountered:
I'm trying to use the ContactListService.updateEmail() method to update the emails of users on my list. But since updating to Laravel 9 and the the latest client version (3.0.2) this is failing each time with the error:
Call to undefined method Mailjet\LaravelMailjet\Model\Contact::setProperties() It's failing on in this part
public function updateEmail(string $id, Contact $contact, string $oldEmail): array
{
$response = $this->mailjet->get(Resources::$Contactdata, ['id' => $oldEmail]);
if (! $response->success()) {
throw new MailjetException(0, 'ContactsListService:changeEmail() failed', $response);
}
$oldContactData = $response->getData();
if (isset($oldContactData[0])) {
$contact->setProperties($oldContactData[0]['Data']);
}
....
}
When I look at the Contact model and it looks like it doesn't have a setProperties method so this error makes sense. Perhaps it needs to be setOptionalProperties instead?
Seems like a bug in the code that needs fixed?
Thank you for this note. The bug was fixed and merged. Enjoy
I'm trying to use the
ContactListService.updateEmail()
method to update the emails of users on my list. But since updating to Laravel 9 and the the latest client version (3.0.2) this is failing each time with the error:Call to undefined method Mailjet\LaravelMailjet\Model\Contact::setProperties()
It's failing on in this partWhen I look at the
Contact
model and it looks like it doesn't have asetProperties
method so this error makes sense. Perhaps it needs to besetOptionalProperties
instead?Seems like a bug in the code that needs fixed?
The text was updated successfully, but these errors were encountered: