diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index 08eb4e5c..8496cdfe 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -221,6 +221,7 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { */ const onData = invoice => { if (invoice.settled) { + writeCoordinate(invoice.r_hash.toString(), coord) if (order.targetType === 'tip') { getUser() .get('postToTipCount') @@ -229,7 +230,6 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { .set(null) // each item in the set is a tip } - writeCoordinate(invoice.r_hash.toString(), coord) stream.off() } }