fix: simplify promise chain
This commit is contained in:
parent
8fe9c2551a
commit
a28d7d1aab
2 changed files with 3 additions and 5 deletions
|
|
@ -88,7 +88,7 @@ function update (id, data, userToken, txId) {
|
|||
' where id=$1 returning *'
|
||||
|
||||
return db.one(sql, [id])
|
||||
.then(customerData => {
|
||||
.then(customerData => {
|
||||
return getEditedData(id)
|
||||
.then(customerEditedData => selectLatestData(customerData, customerEditedData))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue