Skip to content

Commit

Permalink
chore(cleanup): code
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Dec 15, 2018
1 parent ebacda9 commit 26d3eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/api/v1/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ apiUsers.create = function(req, res) {
if (_.isUndefined(id)) return done(null);
groupSchema.getGroupById(id, function(err, grp) {
if (err) return done(err);
if (!grp) return done('Invalid Group (' + id + ') - Group not found. Check Group ID');

grp.addMember(a._id, function(err, success) {
if (err) return done(err);

Expand Down

0 comments on commit 26d3eb1

Please sign in to comment.