compliance router fix (#132)
This commit is contained in:
parent
ff1ec611be
commit
f4301328c4
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ function updateCustomer (req, res, next) {
|
||||||
if (!customer) { throw httpError('Not Found', 404) }
|
if (!customer) { throw httpError('Not Found', 404) }
|
||||||
|
|
||||||
const mergedCustomer = _.merge(customer, patch)
|
const mergedCustomer = _.merge(customer, patch)
|
||||||
return compliance.validationPatch(config, mergedCustomer)
|
return compliance.validationPatch(req.deviceId, config, mergedCustomer)
|
||||||
.then(_.merge(patch))
|
.then(_.merge(patch))
|
||||||
.then(newPatch => customers.update(id, newPatch))
|
.then(newPatch => customers.update(id, newPatch))
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue