소스 검색

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);
 						});