Bug fixing - 17 Jul
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -50,7 +50,7 @@ class DeviceService
|
||||
|
||||
public function createOrUpdateDevice(array $data)
|
||||
{
|
||||
dd($data);
|
||||
|
||||
$token = $this->getToken();
|
||||
|
||||
$payload = [
|
||||
|
||||
Reference in New Issue
Block a user