Reputation: 567
if apply observer to a Collection, I don't want repeat two times the same thing on local.
Example on a diagram CRUD operation (a diagram is made of elements)
Local
Remote
Upvotes: 0
Views: 59
Reputation: 567
I have find a solution (workaround).
I have add an user field to document. This store the user that make the CRUD event.
In the observer I check document.user
if(document.user != Meteor.userId()) // remote CRUD
Upvotes: 1