Skip to content

Commit

Permalink
fix bug change getEmail to getAttributes (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisfoll authored Jul 18, 2023
1 parent b32489d commit 3af05f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request/Track/Customer/MergeCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function getMethod() : RequestMethod
public function getBody() : array
{
return [
"primary" => ["email" => $this->newCustomer->getEmail()],
"secondary" => ["email" => $this->oldCustomer->getEmail()]
"primary" => ["email" => $this->newCustomer->getAttributes()['email']],
"secondary" => ["email" => $this->oldCustomer->getAttributes()['email']]
];
}
}

0 comments on commit 3af05f2

Please sign in to comment.