Wire Queue demo seeder to shared DemoWorld
Deploy Ladill Queue / deploy (push) Successful in 1m3s

Org name, branches, ticket customers, and staff Members now come from
DemoWorld so Queue continuity matches Care/Frontdesk across the suite.
Also resolve organization by owner_ref when metadata.queue.organization_id
is missing, and skip reseed-on-login for DemoWorld staff emails.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 13:35:17 +00:00
co-authored by Cursor
parent ef7ceb076f
commit 8ff100a55b
5 changed files with 705 additions and 31 deletions
+8
View File
@@ -8,6 +8,10 @@ use Illuminate\Support\Facades\Log;
/**
* Reseed Queue demo tenants after a fresh SSO login.
*
* Only owner demo accounts trigger a full reseed. DemoWorld staff logins
* (e.g. receptionist@ladill.com variants) share the owner tenant but must
* never reseed mid-demo.
*/
class DemoLoginReseeder
{
@@ -18,6 +22,10 @@ class DemoLoginReseeder
return;
}
if (\App\Support\DemoWorld::isStaffDemoEmail($user->email)) {
return;
}
$plan = $this->planForEmail($user->email);
if ($plan === null) {
return;