Keep Queue org onboarded during demo login reseed.
Deploy Ladill Queue / deploy (push) Successful in 1m17s

Deleting the org mid afterResponse() reseed sent Care→Queue SSO into onboarding; preserve org/owner and reaffirm onboarded instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 19:29:01 +00:00
co-authored by Cursor
parent d91f632544
commit 735a35634f
3 changed files with 58 additions and 2 deletions
@@ -100,6 +100,17 @@ class IntegrationController extends Controller
AuditLogger::record($owner, 'organization.created', $organization->id, $owner, Organization::class, $organization->id);
} else {
$settings = $organization->settings ?? [];
$settings['onboarded'] = true;
if (! empty($validated['organization_name'])) {
$organization->name = $validated['organization_name'];
}
if (! empty($validated['timezone'])) {
$organization->timezone = $validated['timezone'];
}
$settings['industry'] = $industry;
$organization->forceFill(['settings' => $settings])->save();
$branch = Branch::query()
->where('organization_id', $organization->id)
->where('is_active', true)