fix: add manual data to customer info

This commit is contained in:
José Oliveira 2022-01-19 17:55:01 +00:00
parent 87ead03d1f
commit 8fe9c2551a
2 changed files with 15 additions and 5 deletions

View file

@ -88,6 +88,10 @@ function update (id, data, userToken, txId) {
' where id=$1 returning *'
return db.one(sql, [id])
.then(customerData => {
return getEditedData(id)
.then(customerEditedData => selectLatestData(customerData, customerEditedData))
})
.then(addComplianceOverrides(id, updateData, userToken))
.then(populateOverrideUsernames)
.then(computeStatus)
@ -1053,5 +1057,7 @@ module.exports = {
updateEditedPhoto,
updateTxCustomerPhoto,
enableTestCustomer,
disableTestCustomer
disableTestCustomer,
selectLatestData,
getEditedData
}