Skip to content

Commit

Permalink
Merge pull request #1756 from siiky/chore/lam-1241/customer-routes
Browse files Browse the repository at this point in the history
LAM-1241 Review customer-related requests
  • Loading branch information
RafaelTaranto authored Nov 27, 2024
2 parents 0c251a6 + bb4b0f2 commit a08985f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/customerRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit a08985f

Please sign in to comment.