Closed alexcavender closed 9 years ago
First, thank you for making this package it's really amazing. I have a Meteor method increasePlayCount
increasePlayCount: function (DownloadId){ Downloads.update({slug:DownloadId}, {$inc: {plays:1 }}); },
Using $inc to increase a field in mongo gives me this error:
Using $set works normally on my collections
If I remove my code that calls friendly slugs then I can use $inc with no errors Collection.friendlySlugs('name');
This should be fixed in 0.3.1, please update to the latest!
First, thank you for making this package it's really amazing. I have a Meteor method increasePlayCount
increasePlayCount: function (DownloadId){ Downloads.update({slug:DownloadId}, {$inc: {plays:1 }}); },
Using $inc to increase a field in mongo gives me this error:
Using $set works normally on my collections
If I remove my code that calls friendly slugs then I can use $inc with no errors Collection.friendlySlugs('name');