Skip to content

Commit

Permalink
feat: agent owner id
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Feb 8, 2024
1 parent 4494d58 commit db58b32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function createAgent(AppInterface $app, ZohoService $zohoService, User
$agentPage = $user->get('agent_website');
$agentPageUserId = $sponsorsPage[$agentPage] ?? false;

$agentOwnerUserId = $agentPageUserId ?? $userInvite->users_id;
$agentOwnerUserId = $agentPageUserId ?? $userInvite->users_id;
$agentOwner = Agent::fromCompany($company)->where('users_id', $agentOwnerUserId)->firstOrFail();
$ownerInfo = $zohoService->getAgentByMemberNumber((string) $agentOwner->member_id);

Expand Down

0 comments on commit db58b32

Please sign in to comment.