From a968da10e9a0c7792e99c0d5901bccee8c98bfc6 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 18 Oct 2021 09:44:57 -0400 Subject: [PATCH] Comment --- services/gunDB/contact-api/jobs/onOrders.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index 36790d00..e0484080 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -99,6 +99,8 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { return } + // Gun might callback several times for the same order, avoid dupe + // processing. if (ordersProcessed.has(orderID)) { return }