mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Fixed bug that broke artists/albums endpoint
This commit is contained in:
parent
2269767689
commit
7b3e39b980
@ -255,8 +255,7 @@ exports.setup = function (mstream, dbSettings){
|
||||
return;
|
||||
}
|
||||
|
||||
var returnArray = [];
|
||||
for (let row in rows){
|
||||
for (let row of rows){
|
||||
if(row.album){
|
||||
albums.albums.push({
|
||||
name: row.album,
|
||||
@ -280,7 +279,6 @@ exports.setup = function (mstream, dbSettings){
|
||||
return;
|
||||
}
|
||||
|
||||
var returnArray = [];
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
if(rows[i].album){
|
||||
albums.albums.push({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user