adding Slides collection

This commit is contained in:
Anton Georgiev 2014-07-07 20:58:50 +00:00
parent 7aef935771
commit 168eb4e715
5 changed files with 9 additions and 0 deletions

View File

@ -2,3 +2,4 @@ Meteor.Users = new Meteor.Collection("bbb_users")
Meteor.Chat = new Meteor.Collection("bbb_chat")
Meteor.Meetings = new Meteor.Collection("meetings")
Meteor.Shapes = new Meteor.Collection("shapes")
Meteor.Slides = new Meteor.Collection("slides")

View File

@ -8,6 +8,7 @@ Router.map ->
Meteor.subscribe 'users', Session.get('meetingId')
Meteor.subscribe 'chat', Session.get('meetingId')
Meteor.subscribe 'shapes', Session.get('meetingId')
Meteor.subscribe 'slides', Session.get('meetingId')
@
onBeforeAction: ()->

View File

@ -8,3 +8,8 @@ Meteor.publish 'chat', (meetingId) ->
Meteor.publish 'shapes', (meetingId) ->
Meteor.Shapes.find({meetingId: meetingId})
Meteor.publish 'slides', (meetingId) ->
Meteor.Slides.find({meetingId: meetingId})
# should we be publishing Meteor.Meetings? for now we are not

View File

@ -24,6 +24,8 @@ Meteor.startup ->
console.log "cleared Meetings Collection!"
Meteor.Shapes.remove({})
console.log "cleared Shapes Collection!"
Meteor.Slides.remove({})
console.log "cleared Slides Collection!"
# create create a PubSub connection, start listening