From 41617faa563f57e87616dda92448609bea2c55d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Mon, 6 Aug 2012 07:52:08 +0000 Subject: [PATCH] fix episode_states/has_play_events filter --- couchdb/_design/episode_states/filters/has_play_events.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/couchdb/_design/episode_states/filters/has_play_events.js b/couchdb/_design/episode_states/filters/has_play_events.js index 4ef875e8..991a90f6 100644 --- a/couchdb/_design/episode_states/filters/has_play_events.js +++ b/couchdb/_design/episode_states/filters/has_play_events.js @@ -5,6 +5,16 @@ function(doc, req) return false; } + if(doc._deleted == true) + { + return false; + } + + if(!doc.actions) + { + return false; + } + function isPlayEvent(action) { return action.action == "play"; -- 2.11.4.GIT