Explorar o código

Fixed bug with stations clearing queue.

KrisVos130 %!s(int64=8) %!d(string=hai) anos
pai
achega
d3a1c1eab9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];