First prototype of the functions for polls
This commit is contained in:
parent
fbdc50281c
commit
80ff67b6f2
12
bigbluebutton-html5/app/server/collection_methods/poll.coffee
Executable file
12
bigbluebutton-html5/app/server/collection_methods/poll.coffee
Executable file
@ -0,0 +1,12 @@
|
||||
# --------------------------------------------------------------------------------------------
|
||||
# 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)!")
|
Loading…
Reference in New Issue
Block a user