Sync Frontdesk queue integration flag with Ladill Queue on enable.
Deploy Ladill Frontdesk / deploy (push) Successful in 50s

Mirror Care fix so provision and settings keep frontdesk_enabled in sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-05 22:06:04 +00:00
co-authored by Cursor
parent f0a19e6e6f
commit 014976b757
3 changed files with 26 additions and 5 deletions
@@ -83,7 +83,7 @@ class SettingsController extends Controller
$hadQueue = (bool) data_get($settings, 'queue_integration_enabled', false);
$settings['queue_integration_enabled'] = $wantsQueue;
if ($wantsQueue && ! $hadQueue && $queue->configured()) {
if ($wantsQueue && $queue->configured()) {
$branch = Branch::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->first();
try {
$queue->enable($owner, $organization->name, $branch?->name);