浏览代码

Fixed issues from previous commit

Kristian Vos 5 年之前
父节点
当前提交
8de8a90f89
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      backend/logic/stations.js

+ 2 - 1
backend/logic/stations.js

@@ -379,7 +379,8 @@ module.exports = {
 								});
 							}
 						}, (song, currentSongIndex, next) => {
-							return next(!!song);
+							if (!!song) return next(null, true, currentSongIndex);
+							else return next(null, false);
 						}, (err, song, currentSongIndex) => {
 							return next(err, song, currentSongIndex, station);
 						});