Skip to content

Commit

Permalink
server: return updated song object
Browse files Browse the repository at this point in the history
  • Loading branch information
dxstiny committed Jan 20, 2025
1 parent 28530d3 commit 3ae8ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/handler/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def updateSong(self, request: web.Request) -> web.Response:
song.favourite = jdata.ensure("favourite", bool, song.favourite)
song.source = jdata.ensure("source", str, song.source)
song.spotify = jdata.ensure("spotify", str, song.spotify)
return web.Response(status=200)
return web.json_response(song.toDict())

async def postShuffle(self, request: web.Request) -> web.Response:
"""post(/api/player/shuffle)"""
Expand Down

0 comments on commit 3ae8ac2

Please sign in to comment.