phone_code API bugfix (#120)
This commit is contained in:
parent
ebbeff4211
commit
0e3c0961ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue