Fixing NowPlaying when we have more than one song in the queue

This commit is contained in:
Deluan
2016-03-28 19:11:49 -04:00
parent c8184da0ed
commit 1a705d4319
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func (r *nowPlayingRepository) Count(playerId int) (int64, error) {
// TODO Will not work for multiple players
func (r *nowPlayingRepository) GetAll() ([]*engine.NowPlayingInfo, error) {
np, err := r.Tail(1)
np, err := r.Head(1)
if np == nil || err != nil {
return nil, err
}