1
0
Fork 0
mirror of synced 2024-10-03 02:37:40 +13:00

chore: update hamster script

This commit is contained in:
德华 刘 2023-12-22 14:07:05 +00:00
parent 394f28146a
commit d3143b8ede

View file

@ -219,7 +219,7 @@ class CalcTierStats extends Action
]); ]);
if (!$membership || $membership->isEmpty()) { 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); $userId = $membership->getAttribute('userId', null);
@ -227,6 +227,8 @@ class CalcTierStats extends Action
$user = $dbForConsole->getDocument('users', $userId); $user = $dbForConsole->getDocument('users', $userId);
$stats['Organization Email'] = $user->getAttribute('email', null); $stats['Organization Email'] = $user->getAttribute('email', null);
} }
} else {
Console::error("Email was not found for this Organization ID :{$teamInternalId}");
} }
/** Get Total Members */ /** Get Total Members */