From 13bae520e5b868cccfb68b87876d5ee4ac3533f7 Mon Sep 17 00:00:00 2001 From: sayliraut Date: Wed, 16 Apr 2025 17:30:22 +0530 Subject: [PATCH] change in device --- app/Http/Controllers/APIS/AdminApi/DeviceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,