Skip to content

Commit

Permalink
Always use the contact id
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-flip committed Oct 24, 2024
1 parent 73d550d commit 736db28
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Contacts/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ public function enrolments(array $params = [])

public function courseEnrolments(array $params = [])
{
if(empty($params)) {
$params = [
'contactID' => $this->id,
];
}
$params = array_merge($params, ['contactID' => $this->id]);
$response = $this->manager->getConnection()->get('course/enrolments', $params);

return $response ? $response : [];
Expand Down

0 comments on commit 736db28

Please sign in to comment.