From 4f86610773796c0f8ace7baa083d78aec3b9868b Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Tue, 6 Aug 2013 23:42:32 -0400 Subject: [PATCH] Fix typeerror --- channel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channel.js b/channel.js index 6359b318..5f16ae81 100644 --- a/channel.js +++ b/channel.js @@ -1309,7 +1309,7 @@ Channel.prototype.tryDequeue = function(user, data) { if(typeof data !== "number") return; - var plitem = this.playlist.find(data); + var plitem = this.playlist.items.find(data); if(plitem && plitem.media) this.logger.log("### " + user.name + " deleted " + plitem.media.title); this.dequeue(data); @@ -1435,8 +1435,8 @@ Channel.prototype.move = function(data, user) { moveby = data.moveby; - var fromit = chan.playlist.find(data.from); - var afterit = chan.playlist.find(data.after); + var fromit = chan.playlist.items.find(data.from); + var afterit = chan.playlist.items.find(data.after); if(fromit) { chan.logger.log("### " + user.name + " moved " + fromit.media.title + + afterit ? " after " + afterit.media.title : "");