diff --git a/lib/routes.js b/lib/routes.js index 27276efa..63dee14d 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -214,7 +214,7 @@ function updateCustomer (req, res, next) { if (!customer) { throw httpError('Not Found', 404) } const mergedCustomer = _.merge(customer, patch) - return compliance.validationPatch(config, mergedCustomer) + return compliance.validationPatch(req.deviceId, config, mergedCustomer) .then(_.merge(patch)) .then(newPatch => customers.update(id, newPatch)) })