Browse Source

remove select from user-grop-relaton model

itizawa 5 years ago
parent
commit
fd5628206c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/server/models/user-group-relation.js

+ 0 - 2
src/server/models/user-group-relation.js

@@ -85,13 +85,11 @@ class UserGroupRelation {
    * @memberof UserGroupRelation
    * @memberof UserGroupRelation
    */
    */
   static findAllRelationForUserGroup(userGroup) {
   static findAllRelationForUserGroup(userGroup) {
-    const User = UserGroupRelation.crowi.model('User');
     debug('findAllRelationForUserGroup is called', userGroup);
     debug('findAllRelationForUserGroup is called', userGroup);
     return this
     return this
       .find({ relatedGroup: userGroup })
       .find({ relatedGroup: userGroup })
       .populate({
       .populate({
         path: 'relatedUser',
         path: 'relatedUser',
-        select: User.USER_PUBLIC_FIELDS,
       })
       })
       .exec();
       .exec();
   }
   }