Browse Source

Fixed bug with stations clearing queue.

KrisVos130 8 years ago
parent
commit
d3a1c1eab9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/logic/stations.js

+ 1 - 1
backend/logic/stations.js

@@ -291,7 +291,7 @@ module.exports = {
 							} else {
 								if (station.partyMode === true) {
 									if (station.queue.length > 0) {
-										db.models.station.update({_id: stationId}, {$pull: {queue: {songId: station.queue[0]._id}}}, (err) => {
+										db.models.station.update({_id: stationId}, {$pull: {queue: {_id: station.queue[0]._id}}}, (err) => {
 											if (err) return next(err);
 											let $set = {};
 											$set.currentSong = station.queue[0];