From 99f07bcab395cb836caeec2cff026f813ff14855 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 19 Jan 2022 12:28:40 +0100 Subject: [PATCH] Clear debug --- app/Utils/SongUtils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index 74f0fc3..be2757d 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -6,7 +6,6 @@ import { Artist, InternalPlayerResponse, PlayerResponse, SpotifyToken } from 'Ap import Song from 'App/Models/Song' import queryString from 'query-string' import { updateGithubReadmeSpotify } from 'App/Utils/UpdateGithubReadme' -import { diff } from 'deep-object-diff' export async function getSpotifyAccount(): Promise { return await Redis.exists('spotify:account') @@ -139,12 +138,12 @@ export async function resetCurrentSongCache(): Promise { } export async function updateCurrentSong(song: InternalPlayerResponse): Promise { - const current = JSON.parse(await Redis.get('spotify/current') as string) + // const current = JSON.parse(await Redis.get('spotify/current') as string) await Redis.set('spotify:current', JSON.stringify(song)) await updateGithubReadmeSpotify() - const changed = diff(current, song) - console.log(changed) + // const changed = diff(current, song) + // console.log(changed) // todo send message to Rabbit }