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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user