Keep Queue org onboarded during demo login reseed.
Deploy Ladill Queue / deploy (push) Successful in 1m17s
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user