From a38c7bd91dca8ed485d398031c12e8c1552ce3d2 Mon Sep 17 00:00:00 2001 From: baalmart Date: Thu, 12 Dec 2024 12:52:09 +0300 Subject: [PATCH] more input validations for BULK updates of devices --- .../validators/device.validators.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/device-registry/validators/device.validators.js b/src/device-registry/validators/device.validators.js index 266deb9c4b..e5a79a4de1 100644 --- a/src/device-registry/validators/device.validators.js +++ b/src/device-registry/validators/device.validators.js @@ -775,30 +775,12 @@ const validateBulkUpdateDevices = [ .bail() .custom((value) => { const allowedFields = [ - "visibility", - "long_name", - "mountType", - "powerType", - "isActive", "groups", - "isRetired", "mobility", - "nextMaintenance", - "isPrimaryInLocation", - "isUsedForCollocation", "owner", - "host_id", - "phoneNumber", - "height", - "elevation", - "writeKey", - "readKey", - "latitude", - "longitude", "description", "product_name", "device_manufacturer", - "device_codes", "category", ];