Skip to content

Commit

Permalink
Merge pull request #4049 from airqo-platform/bulk-update-hotfix
Browse files Browse the repository at this point in the history
more input validations for BULK updates of devices
  • Loading branch information
Baalmart authored Dec 12, 2024
2 parents 4f975a1 + a38c7bd commit a67d93c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/device-registry/validators/device.validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
];

Expand Down

0 comments on commit a67d93c

Please sign in to comment.