Fix secondary spotify lookup

This commit is contained in:
Jonathan Cremin 2014-12-07 00:26:53 +00:00
parent 8bcb13a7a9
commit 234e25d2bc

View file

@ -89,7 +89,7 @@ module.exports.search = function(data) {
deferred.resolve({service: "spotify"}); deferred.resolve({service: "spotify"});
} }
} else { } else {
module.exports.lookupId(data[type + "s"].items[0].id, type).then(deferred.resolve); module.exports.lookupId(results[type + "s"].items[0].id, type).then(deferred.resolve);
} }
}); });