From 0e3c0961ea84aeb642e8eb7639b2d1e40b9b2136 Mon Sep 17 00:00:00 2001 From: Fabio Cigliano Date: Wed, 6 Jun 2018 19:06:28 +1200 Subject: [PATCH] phone_code API bugfix (#120) --- lib/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)