I have two publish methods for two different templates, however when I subscribe to each from different templates. The first template from the first publish method returns correctly, while the second does not, it also returns the first publish method rather than the second.
It should go to note that each method search the same collection but for different results.
To recap if I subscribe and call find query on ‘collectionVariationOne’ in one template it works fine. But if I subscribe and call a find query on ‘collectionVariationTwo’ from a different template. IT ALSO RETURNS THE VALUE FROM ‘collectionVariationOne’.
Aah, it’s the same collection … You may need to close the first subscription and then open the second one. Or if you want, push both data sets once (your publish function can also return an array of cursors, or a single query for both data sets)