refactor: styling improvements and add custom carousel component
This commit is contained in:
parent
91a302676a
commit
2f2285e943
5 changed files with 73 additions and 38 deletions
|
|
@ -108,7 +108,7 @@ function updateTxCustomerPhoto (req, res, next) {
|
|||
|
||||
Promise.all([customers.getById(customerId), txs.getTx(txId, direction)])
|
||||
.then(([customer, tx]) => {
|
||||
if (!customer || !tx) { throw httpError('Not Found', 404) }
|
||||
if (!customer || !tx) return
|
||||
return customers.updateTxCustomerPhoto(tcPhotoData)
|
||||
.then(newPatch => txs.updateTxCustomerPhoto(customerId, txId, direction, newPatch))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue