🐛 fix bug: wrong contact id returned by contact creation
This commit is contained in:
parent
700ffab130
commit
8dab2377f5
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ class MailingListRecipient {
|
|||
}
|
||||
|
||||
// Execute the query
|
||||
$contact->execute();
|
||||
$result = $contact->execute()->first();
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
throw new MailinglistException(
|
||||
|
@ -112,7 +112,7 @@ class MailingListRecipient {
|
|||
|
||||
return new static(
|
||||
sid: $sid,
|
||||
contact_id: $contact['id'],
|
||||
contact_id: $result['id'],
|
||||
first_name: $firstName,
|
||||
last_name: $lastName,
|
||||
email: $email,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue