phone_code API bugfix (#120)

This commit is contained in:
Fabio Cigliano 2018-06-06 19:06:28 +12:00 committed by Josh Harvey
parent ebbeff4211
commit 0e3c0961ea

View file

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