Explorar o código

Fixed issue with station queue.

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