Merge pull request #1756 from siiky/chore/lam-1241/customer-routes

LAM-1241 Review customer-related requests
This commit is contained in:
Rafael Taranto 2024-11-27 13:53:13 +00:00 committed by GitHub
commit 94337c688c
2 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ function getWithEmail (email) {
*
* @param {string} id Customer's id
* @param {object} data Fields to update
* @param {string} Acting user's token
* @param {string} userToken Acting user's token
*
* @returns {Promise} Newly updated Customer
*/
@ -229,7 +229,7 @@ function enhanceEditedPhotos (fields) {
/**
* Remove the edited data from the db record
*
* @name enhanceOverrideFields
* @name deleteEditedData
* @function
*
* @param {string} id Customer's id

View file

@ -108,7 +108,7 @@ function updateCustomer (req, res, next) {
.then(_.merge(patch))
.then(newPatch => customers.updatePhotoCard(id, newPatch))
.then(newPatch => customers.updateFrontCamera(id, newPatch))
.then(newPatch => customers.update(id, newPatch, null, txId))
.then(newPatch => customers.update(id, newPatch, null))
.then(customer => {
createPendingManualComplianceNotifs(settings, customer, deviceId)
respond(req, res, { customer })