mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
@@ -21,7 +21,7 @@ export default async function handler(
|
||||
) {
|
||||
try {
|
||||
const song = await spotify.getCurrentSong()
|
||||
if (!song.is_playing || !song) {
|
||||
if (!song || !song.is_playing) {
|
||||
return res.status(200).json({
|
||||
is_playing: false,
|
||||
})
|
||||
|
Reference in New Issue
Block a user