Sync Care queue integration flag with Ladill Queue on enable.
Deploy Ladill Care / deploy (push) Successful in 42s
Deploy Ladill Care / deploy (push) Successful in 42s
Provision alone left care_enabled false on Queue; settings re-save and service queue pages now recover when integration is out of sync. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,7 +63,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);
|
||||
|
||||
Reference in New Issue
Block a user