diff --git a/lib/routes.js b/lib/routes.js index 27ad6f6c..27276efa 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -180,7 +180,7 @@ function addOrUpdateCustomer (req) { return customers.add(req.body) }) .then(customer => { - return compliance.validationPatch(config, customer) + return compliance.validationPatch(req.deviceId, config, customer) .then(patch => { if (_.isEmpty(patch)) return customer return customers.update(customer.id, patch)