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,