Fix for calculate payouts
This commit is contained in:
parent
ae8457c588
commit
cf873bd197
1 changed files with 4 additions and 0 deletions
|
|
@ -81,6 +81,10 @@ class CalculatePayouts extends Command
|
|||
->get();
|
||||
|
||||
foreach ($companies as $company) {
|
||||
if (!isset($userMap[$company->referral_code])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$user = $userMap[$company->referral_code];
|
||||
$payment = $company->payment;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue