Create demo org shell before login redirect.
Deploy Ladill Care / deploy (push) Successful in 42s

Async reseed alone still left the first Care request without an onboarded org; ensure the shell synchronously, then refresh demo data afterResponse().

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 19:33:04 +00:00
co-authored by Cursor
parent 2c2cc1e938
commit c319692b33
4 changed files with 75 additions and 1 deletions
+4 -1
View File
@@ -17,7 +17,10 @@ class OrganizationResolver
$member = Member::where('user_ref', $ref)->first();
if ($member) {
return Organization::find($member->organization_id);
$organization = Organization::query()->find($member->organization_id);
if ($organization) {
return $organization;
}
}
return Organization::owned($ref)->first();