From 100c9c3bdd8bc8417b0a9e736a6f3d7e928a5ebe Mon Sep 17 00:00:00 2001 From: Marketionist Date: Sun, 20 Oct 2024 11:47:48 -0400 Subject: [PATCH] Await for functionCheckValue --- utils/retry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/retry.js b/utils/retry.js index 38c8c17..ab74677 100644 --- a/utils/retry.js +++ b/utils/retry.js @@ -61,7 +61,7 @@ async function retryIfFalse ({ ); } - if (functionCheckValue(res)) { + if (await functionCheckValue(res)) { clearInterval(intervalId); return resolve(res); } else if (iteration < attemptsValue) {