fix bug-shapes were flushed no matter which meeting ends
This commit is contained in:
parent
1b0dca557d
commit
0aa7038ae1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user