Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check study group name is unique before new study group can create #639
Fixes #585 .
I query study_groups collection in MongoDB to perform exact match on title and visibility equals true and return record count. If count is greater than 0, then Meteor throws error. Otherwise, the function follows the same logic to create new study group.
New study group is allowed to create if the name is used for the first time or all study groups with the same name are archived.