compliance router fix (#132)

This commit is contained in:
Fabio Cigliano 2018-07-03 03:46:55 +12:00 committed by Josh Harvey
parent ff1ec611be
commit f4301328c4

View file

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