From f4aced41d9278bea3174b8ca58160ef866dcaf2c Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 17 Jan 2022 18:56:02 +0100 Subject: [PATCH] change response status --- app/Utils/SongUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index 02c2bc3..46d0bfd 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -86,7 +86,7 @@ async function RequestWrapper(url: string): Promise> } request = await axios.get(url, options) - if (request.status === 401) { + if (request.status !== 200) { await regenerateTokens() request = await axios.get(url, options) }