update device

This commit is contained in:
2025-10-09 03:56:48 +07:00
parent 0ae2903035
commit 5d27056906
2 changed files with 5 additions and 4 deletions

View File

@@ -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);