diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index f784cfe5..8c059238 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1074,6 +1074,15 @@ const sendSpontaneousPayment = async ( payment_request: orderResponse.response }) + const coordinate = 'lnPub + invoiceIndex + payment hash(?)' //.... + const orderData = { + someInfo: 'info ' + } + getUser() + .get('orders') + .get(coordinate) + .set(orderData) + return payment } catch (e) { logger.error('Error inside sendPayment()') diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index 1d46cc5b..5bacd961 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -267,7 +267,7 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { getUser() .get('orders') .get(coordinate) - .set(orderData) // each item in the set is a tip + .set(orderData) } stream.on('data', invoiceSubCb)