fix bug-shapes were flushed no matter which meeting ends

This commit is contained in:
Anton Georgiev 2015-11-27 16:40:31 +00:00
parent 1b0dca557d
commit 0aa7038ae1

View File

@ -89,7 +89,7 @@
# called on server start and meeting end # called on server start and meeting end
@clearShapesCollection = (meetingId) -> @clearShapesCollection = (meetingId) ->
if meetingId? if meetingId?
Meteor.Shapes.remove {}, -> Meteor.Shapes.remove {meetingId: meetingId}, ->
Meteor.log.info "cleared Shapes Collection (meetingId: #{meetingId}!" Meteor.log.info "cleared Shapes Collection (meetingId: #{meetingId}!"
Meteor.WhiteboardCleanStatus.update({meetingId: meetingId}, {$set: {in_progress: false}}) Meteor.WhiteboardCleanStatus.update({meetingId: meetingId}, {$set: {in_progress: false}})
else else