chore: update hamster script
This commit is contained in:
parent
394f28146a
commit
d3143b8ede
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,7 @@ class CalcTierStats extends Action
|
|||
]);
|
||||
|
||||
if (!$membership || $membership->isEmpty()) {
|
||||
throw new \Exception('Membership not found. Skipping project : ' . $project->getId());
|
||||
Console::error('Membership not found. Skipping project : ' . $project->getId());
|
||||
}
|
||||
|
||||
$userId = $membership->getAttribute('userId', null);
|
||||
|
@ -227,6 +227,8 @@ class CalcTierStats extends Action
|
|||
$user = $dbForConsole->getDocument('users', $userId);
|
||||
$stats['Organization Email'] = $user->getAttribute('email', null);
|
||||
}
|
||||
} else {
|
||||
Console::error("Email was not found for this Organization ID :{$teamInternalId}");
|
||||
}
|
||||
|
||||
/** Get Total Members */
|
||||
|
|
Loading…
Reference in a new issue