소스 검색

Fixed issue where it would add songs to the queue with the type of the room, instead of the type YouTube,

KrisVos130 9 년 전
부모
커밋
69e8d95aee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/client/client.js

+ 1 - 1
app/client/client.js

@@ -962,7 +962,7 @@ Template.room.events({
         var processed = 0;
         var processed = 0;
         var total = YTImportQueue.length;
         var total = YTImportQueue.length;
         YTImportQueue.forEach(function(song) {
         YTImportQueue.forEach(function(song) {
-            var songData = {type: type, id: song.id, title: song.title, artist: "", img: ""};
+            var songData = {type: "YouTube", id: song.id, title: song.title, artist: "", img: ""};
             Meteor.call("addSongToQueue", Session.get("type"), songData, function(err, res) {
             Meteor.call("addSongToQueue", Session.get("type"), songData, function(err, res) {
                 if (err) {
                 if (err) {
                     failed++;
                     failed++;