Преглед на файлове

Fixed issue with station queue.

KrisVos130 преди 8 години
родител
ревизия
84edef052b
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      backend/logic/actions/stations.js

+ 1 - 0
backend/logic/actions/stations.js

@@ -482,6 +482,7 @@ module.exports = {
 						});
 					} else cont(song);
 					function cont(song) {
+						song.requestedBy = userId;
 						db.models.station.update({ _id: stationId }, { $push: { queue: song } }, (err) => {
 							if (err) return cb({'status': 'failure', 'message': 'Something went wrong'});
 							stations.updateStation(stationId, (err, station) => {