From 6fa2899d9e22b05faf06e272b7bfc488452d4291 Mon Sep 17 00:00:00 2001 From: Lukas Andreano Date: Mon, 13 Nov 2023 21:10:04 +0600 Subject: [PATCH] ~deploy~ / fix: removed unused condition --- src/tasks/token-updater/token-updater.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tasks/token-updater/token-updater.service.ts b/src/tasks/token-updater/token-updater.service.ts index 8013039..de5b274 100644 --- a/src/tasks/token-updater/token-updater.service.ts +++ b/src/tasks/token-updater/token-updater.service.ts @@ -47,9 +47,7 @@ export class TokenUpdaterService { let access_token; let attempts = 0; - while (true) { - if (attempts > 20) break; - + while (attempts <= 20) { try { access_token = await getQiwiToken(el.phone, el.password);