From b84bf47c77b317b045a16f09a470318b850d51ab Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 17 Jan 2022 23:31:06 +0100 Subject: [PATCH] Fix error --- app/Utils/SongUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index e6b90a9..7ad2366 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -75,8 +75,8 @@ export async function regenerateTokens(): Promise { if (authorization_tokens.status === 200) { await setSpotifyAccount({ - access_token: (await getSpotifyAccount()).access_token, - refresh_token: authorization_tokens.data.access_token, + access_token: authorization_tokens.data.access_token, + refresh_token, }) } }