From a2faa31d4941d831859f91626c9eea03e5d7dd55 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 28 Mar 2025 08:10:54 -0500 Subject: [PATCH] Fix automated retries retrying too much (#2037) --- api/resolvers/wallet.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/resolvers/wallet.js b/api/resolvers/wallet.js index 3759dc56..a8af96df 100644 --- a/api/resolvers/wallet.js +++ b/api/resolvers/wallet.js @@ -481,6 +481,13 @@ const resolvers = { AND "cancelledAt" < now() - ${`${WALLET_RETRY_AFTER_MS} milliseconds`}::interval AND "cancelledAt" > now() - ${`${WALLET_RETRY_BEFORE_MS} milliseconds`}::interval AND "paymentAttempt" < ${WALLET_MAX_RETRIES} + AND ( + "actionType" = 'ITEM_CREATE' OR + "actionType" = 'ZAP' OR + "actionType" = 'DOWN_ZAP' OR + "actionType" = 'POLL_VOTE' OR + "actionType" = 'BOOST' + ) ORDER BY id DESC` } },