Explorar o código

Removed unnecessary method

Taichi Masuyama %!s(int64=4) %!d(string=hai) anos
pai
achega
9652555a01
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      packages/app/src/server/models/user-group-relation.js

+ 0 - 9
packages/app/src/server/models/user-group-relation.js

@@ -272,15 +272,6 @@ class UserGroupRelation {
       });
   }
 
-  static async findWithUserByGroupIds(groupIds) {
-    if (!Array.isArray(groupIds)) {
-      throw Error('groupIds must be an array');
-    }
-
-    return this.find({ relatedGroup: { $in: groupIds } })
-      .populate('relatedUser');
-  }
-
   static async findUserIdsByGroupId(groupId) {
     const relations = await this.find({ relatedGroup: groupId }, { _id: 0, relatedUser: 1 }).lean().exec(); // .lean() to get not ObjectId but string