From 38a817243106c3f900c23e03b1dd6a2d8d7f0b4b Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 29 Feb 2020 17:56:08 -0400 Subject: [PATCH] await promise --- services/gunDB/contact-api/jobs/onOrders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index cf86db5a..7e5ae2ca 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -54,7 +54,7 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { .get(orderID) .then() - if (alreadyAnswered) { + if (await alreadyAnswered) { logger.info('this order is already answered, quitting') return }