diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index 629f3b4f..cf86db5a 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -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()