bigbluebutton-Github/bigbluebutton-html5/app/server/collection_methods/poll.coffee
2015-07-22 20:31:08 -07:00

12 lines
585 B
CoffeeScript
Executable File

# --------------------------------------------------------------------------------------------
# Private methods on server
# --------------------------------------------------------------------------------------------
@addPollToCollection = (payload) ->
console.log "showing a message"
console.log payload
@clearPollCollection = (meetingId) ->
if meetingId?
Meteor.Polls.remove({meetingId: meetingId}, Meteor.log.info "cleared Polls Collection (meetingId: #{meetingId}!")
else
Meteor.Polls.remove({}, Meteor.log.info "cleared Polls Collection (all Polls)!")