Explorar o código

Fixed issues from previous commit

Kristian Vos %!s(int64=5) %!d(string=hai) anos
pai
achega
8de8a90f89
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
 						});