correct error
This commit is contained in:
parent
dc0dc9e847
commit
3a099f6565
1 changed files with 4 additions and 2 deletions
|
|
@ -133,8 +133,10 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => {
|
|||
.get(orderID)
|
||||
.put(encInvoice, ack => {
|
||||
if (ack.err) {
|
||||
throw new Error(
|
||||
`Error saving encrypted invoice to order to response usergraph: ${ack}`
|
||||
rej(
|
||||
new Error(
|
||||
`Error saving encrypted invoice to order to response usergraph: ${ack}`
|
||||
)
|
||||
)
|
||||
} else {
|
||||
res()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue