From 3d0132685fa1b5af6f1f9c37cc66ce03dc89d5a3 Mon Sep 17 00:00:00 2001 From: Oleksandr Zhurbenko Date: Mon, 27 Jun 2016 11:30:37 -0700 Subject: [PATCH] Fixed a bug with Polls deletion from all meetings Which happened when we published a poll, cleared a collection, and then received a poll_stopped_message --- .../api/polls/server/modifiers/clearPollCollection.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bigbluebutton-html5/imports/api/polls/server/modifiers/clearPollCollection.js b/bigbluebutton-html5/imports/api/polls/server/modifiers/clearPollCollection.js index a69e8ff1df..5070cb700f 100755 --- a/bigbluebutton-html5/imports/api/polls/server/modifiers/clearPollCollection.js +++ b/bigbluebutton-html5/imports/api/polls/server/modifiers/clearPollCollection.js @@ -6,10 +6,7 @@ export function clearPollCollection() { const pollId = arguments[1]; //TODO make it so you can delete the polls based only on meetingId - if (meetingId != null && pollId != null && Polls.findOne({ - meetingId: meetingId, - poll: { id: pollId }, - }) != null) { + if (meetingId != null && pollId != null) { return Polls.remove({ meetingId: meetingId, 'poll.id': pollId,