Auto-provision Meet workspaces for Care video visit scheduling.
Deploy Ladill Meet / deploy (push) Successful in 1m34s
Deploy Ladill Meet / deploy (push) Successful in 1m34s
Care appointments can create Meet rooms for accounts that have never opened Meet, matching the Sales Centre provisioning path. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -33,7 +33,7 @@ class ServiceRoomController extends Controller
|
||||
{
|
||||
$validated = $this->validateRoomPayload($request);
|
||||
|
||||
if (($validated['source']['app'] ?? '') === 'sales_centre') {
|
||||
if (in_array(($validated['source']['app'] ?? ''), ['sales_centre', 'care'], true)) {
|
||||
$this->salesCentreWorkspace->ensureHost($validated);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class ServiceRoomController extends Controller
|
||||
return Organization::findOrFail($validated['organization_id']);
|
||||
}
|
||||
|
||||
if (($validated['source']['app'] ?? '') === 'sales_centre') {
|
||||
if (in_array(($validated['source']['app'] ?? ''), ['sales_centre', 'care'], true)) {
|
||||
$host = User::where('public_id', $validated['host_user_ref'])->firstOrFail();
|
||||
|
||||
return $this->salesCentreWorkspace->ensureOrganization($host);
|
||||
|
||||
Reference in New Issue
Block a user