update device
This commit is contained in:
@@ -49,7 +49,7 @@ class DeviceService {
|
||||
}
|
||||
|
||||
// Update device
|
||||
static async updateDevice(id, data, userId) {
|
||||
static async updateDevice(id, data, user_Id) {
|
||||
if (!data || typeof data !== 'object') data = {};
|
||||
|
||||
const existingDevice = await getDeviceByIdDb(id);
|
||||
@@ -57,7 +57,7 @@ class DeviceService {
|
||||
throw new ErrorHandler(404, 'Device not found');
|
||||
}
|
||||
|
||||
data.updated_by = userId;
|
||||
data.updated_by = user_Id;
|
||||
|
||||
const updatedDevice = await updateDeviceDb(id, data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user