Skip to content

Commit

Permalink
refact: fix cms
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Mar 12, 2024
1 parent dc93eba commit ddc657e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Leads/Lead.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static function getCoBuyer(Dealer $dealer, User $user, int $leadsId): ?st
);

if (preg_match("/\/id\/(\d+)/", $response['coBuyerContact'], $matches)) {
return $matches[1]; // $matches[1] contains the first captured group, which is the ID
return $matches[1];
}

return null;
Expand Down

0 comments on commit ddc657e

Please sign in to comment.