Merge pull request #1103 from chaotixkilla/fix-missing-custom-req-data-machine-response

Fix missing customer data on machine requests
This commit is contained in:
Rafael Taranto 2022-02-14 17:39:52 +00:00 committed by GitHub
commit b353f68236
8 changed files with 100 additions and 32 deletions

View file

@ -25,7 +25,7 @@ function updateCustomerCustomInfoRequest (customerId, patch, req, res) {
.then(customer => respond(req, res, { customer }))
}
return customInfoRequestQueries.setCustomerData(customerId, patch.infoRequestId, patch)
return customInfoRequestQueries.setCustomerDataViaMachine(customerId, patch.infoRequestId, patch)
.then(() => customers.getById(customerId))
.then(customer => respond(req, res, { customer }))
}