correct error

This commit is contained in:
Daniel Lugo 2020-02-28 17:00:45 -04:00
parent dc0dc9e847
commit 3a099f6565

View file

@ -133,9 +133,11 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => {
.get(orderID) .get(orderID)
.put(encInvoice, ack => { .put(encInvoice, ack => {
if (ack.err) { if (ack.err) {
throw new Error( rej(
new Error(
`Error saving encrypted invoice to order to response usergraph: ${ack}` `Error saving encrypted invoice to order to response usergraph: ${ack}`
) )
)
} else { } else {
res() res()
} }