fix: add manual data to customer info
This commit is contained in:
parent
87ead03d1f
commit
8fe9c2551a
2 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue