@@ -109,6 +109,7 @@ let lib = {
}
], (err, playlist) => {
+ console.log(err, playlist);
if (err) return cb({ 'status': 'failure', 'message': 'Something went wrong'});
cache.pub('playlist.create', playlist._id);
return cb({ 'status': 'success', 'message': 'Successfully created playlist' });
@@ -545,7 +545,9 @@ module.exports = {
if (err) return cb(err);
stations.updateStation(stationId, (err, station) => {
- stations.skipStation(stationId)();
+ if (!station.partyMode) {
+ stations.skipStation(stationId)();
+ }
cache.pub('privatePlaylist.selected', {playlistId, stationId});
cb({'status': 'success', 'message': 'Playlist selected.'});
});
@@ -1,5 +1,4 @@
module.exports = {
- _id: { type: String, lowercase: true, max: 16, min: 2 },
displayName: { type: String, min: 2, max: 32, required: true },
songs: { type: Array },
createdBy: { type: String, required: true },