BUG 問題修正 20250528
This commit is contained in:
parent
a45c139db7
commit
871a139587
@ -252,9 +252,9 @@ class RoomControlController extends Controller
|
||||
public function sendSwitch(SendRoomSwitchCommandRequest $request): JsonResponse
|
||||
{
|
||||
$validated = $request->validated();
|
||||
|
||||
$branch = Branch::where('name',$validated['branch_name'])->first();
|
||||
$room = Room::where([
|
||||
['branch_name', $validated['branch_name']],
|
||||
['branch_id', $branch->id],
|
||||
['name', $validated['room_name']],
|
||||
])->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user