From 53c6375b3ef01e8c6a1577d0e2507e52b02ea2bd Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sat, 15 Jan 2022 22:22:40 +0100 Subject: [PATCH] debug --- app/Tasks/CurrentSongTask.ts | 1 - app/Utils/SongUtils.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Tasks/CurrentSongTask.ts b/app/Tasks/CurrentSongTask.ts index 0ece1db..34d350c 100644 --- a/app/Tasks/CurrentSongTask.ts +++ b/app/Tasks/CurrentSongTask.ts @@ -5,7 +5,6 @@ const MS = 1000 let taskId async function SpotifyCurrentListeningWatcher(): Promise { - console.log('access: ' + getSpotifyAccount().access) if (getSpotifyAccount().access === '') return await getCurrentPlayingFromSpotify() } diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index d3c0cb6..b17bf6d 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -7,7 +7,7 @@ import { Artist, InternalPlayerResponse, PlayerResponse, SpotifyToken } from 'Ap import Song from 'App/Models/Song' export function getSpotifyAccount(): { access: string; refresh: string } { - console.log(`spot account : ${JSON.parse(readFileSync('spotify.json').toString())}`) + console.log(JSON.parse(readFileSync('spotify.json').toString())) return JSON.parse(readFileSync('spotify.json').toString()) } @@ -19,7 +19,6 @@ export function getAuthorizationURI(): string { redirect_uri: `${Env.get('BASE_URL')}/spotify/callback`, }) - console.log('auth url : ' + `https://accounts.spotify.com/authorize?${query}`) return `https://accounts.spotify.com/authorize?${query}` }