First prototype of the functions for polls

This commit is contained in:
Oleksandr Zhurbenko 2015-07-22 20:31:08 -07:00
parent fbdc50281c
commit 80ff67b6f2

View 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)!")