Since it returns only one song it's obvious to return just that song's attributes.

This commit is contained in:
Alexander Andreev 2021-09-01 22:13:04 +04:00
parent 645e94a5d8
commit d3fb86dbdb
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -70,7 +70,7 @@ function setRoutes() {
ctx.body = await getRadioStatus(); ctx.body = await getRadioStatus();
}) })
.get('/lastsong', async ctx => { .get('/lastsong', async ctx => {
ctx.body = await getLastPlayedSongs(2); ctx.body = await getLastPlayedSongs(2)[0];
}); });
} }