We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is an issue in the order of things done in this method
You must first update endDate, and then setAppPlansObject like so
// Update endDate to be null Utility.updateAppPlansObject(options, planName, { $unset: { 'appPlans.list.$.endDate': '', }, }); Utility.setAppPlansObject(options, modifier); return true;
Otherwise, the $addToSet modifier does not work and it adds duplicate plans with exact same parameters in the appPlans.list object
https://github.com/aldeed/meteor-plans/blob/a6b2919600ca65317bdef021ae23350caa1bce60/server/utility.js#L86
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is an issue in the order of things done in this method
You must first update endDate, and then setAppPlansObject like so
Otherwise, the $addToSet modifier does not work and it adds duplicate plans with exact same parameters in the appPlans.list object
https://github.com/aldeed/meteor-plans/blob/a6b2919600ca65317bdef021ae23350caa1bce60/server/utility.js#L86
The text was updated successfully, but these errors were encountered: