diff --git a/app/Http/Controllers/APIS/AdminApi/DeviceController.php b/app/Http/Controllers/APIS/AdminApi/DeviceController.php index c32f32e..7f4df0b 100644 --- a/app/Http/Controllers/APIS/AdminApi/DeviceController.php +++ b/app/Http/Controllers/APIS/AdminApi/DeviceController.php @@ -47,6 +47,7 @@ class DeviceController extends Controller ] ], 'deviceProfileId' => $request->deviceProfileId ?? 1, + 'asset_id' => $request->asset_id ?? 'a5daeb60-f36c-11ef-a9dc-45dd276e4cd5', ]; @@ -79,7 +80,7 @@ class DeviceController extends Controller 'name' => $apiResponse['name'] ?? null, 'type' => $apiResponse['type'] ?? null, 'label' => $apiResponse['label'] ?? null, - 'asset_id' => $apiResponse['asset_id'] ?? 'a5daeb60-f36c-11ef-a9dc-45dd276e4cd5', + 'asset_id' => $request->asset_id ?? 'a5daeb60-f36c-11ef-a9dc-45dd276e4cd5', 'device_profile_id' => $apiResponse['deviceProfileId']['id'] ?? null, 'firmware_id' => $apiResponse['firmwareId']['id'] ?? null, 'software_id' => $apiResponse['softwareId']['id'] ?? null,