Sync DemoWorld specialty staff ownerEmailForStaff fix.
Deploy Ladill Queue / deploy (push) Successful in 35s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 15:28:22 +00:00
co-authored by Cursor
parent b208e59bd0
commit 1be77d1d3c
+8 -3
View File
@@ -585,9 +585,14 @@ final class DemoWorld
public static function ownerEmailForStaff(?string $email): ?string
{
$email = strtolower(trim((string) $email));
foreach (self::STAFF as $tier => $roster) {
foreach ($roster as $member) {
if (strtolower($member['email']) === $email) {
if ($email === '') {
return null;
}
// Use staff() so dynamically appended specialty doctors resolve too.
foreach (['free', 'pro', 'enterprise'] as $tier) {
foreach (self::staff($tier) as $member) {
if (strtolower((string) $member['email']) === $email) {
return self::ownerEmailForTier($tier);
}
}