Bug fixing - 17 Jul

This commit is contained in:
2025-07-17 20:11:16 +05:30
parent ba097b2c5e
commit fe29aef33f
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class DeviceController extends Controller
}
$deviceProfileName = DeviceProfileMaster::where('id',$request->deviceProfileId)->first();
dd($deviceProfileName['name']);
$deviceData = [
'id' => $request->id ?? null,
'name' => $request->name ?? null,
@@ -86,7 +86,7 @@ class DeviceController extends Controller
$deviceData['softwareId'] = $request->softwareId;
}
// dd($request->all());
// Call Service to create/update device
if (empty($request->id)) {
$apiResponse = $this->deviceService->createOrUpdateDevice($deviceData);

View File

@@ -50,7 +50,7 @@ class DeviceService
public function createOrUpdateDevice(array $data)
{
dd($data);
$token = $this->getToken();
$payload = [