initial implementation for GET groups

This commit is contained in:
Matteo Pagliazzi
2015-12-18 17:26:49 +01:00
parent 6b430e6866
commit 1132e3971d
3 changed files with 73 additions and 2 deletions
+1
View File
@@ -145,6 +145,7 @@ schema.post('remove', function postRemoveGroup (group) {
return doc;
};*/
// TODO populate, isMember?
schema.statics.getGroup = function getGroup (user, groupId, fields) {
let query;