From f4301328c4e7ea77c33f5ceafadd71d2e3d14887 Mon Sep 17 00:00:00 2001 From: Fabio Cigliano Date: Tue, 3 Jul 2018 03:46:55 +1200 Subject: [PATCH] compliance router fix (#132) --- lib/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes.js b/lib/routes.js index 27276efa..63dee14d 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -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)) })