|
@@ -139,7 +139,7 @@ class UserGroupRelation {
|
|
|
* @returns {Promise<ObjectId[]>}
|
|
* @returns {Promise<ObjectId[]>}
|
|
|
*/
|
|
*/
|
|
|
static async findAllUserGroupIdsRelatedToUser(user) {
|
|
static async findAllUserGroupIdsRelatedToUser(user) {
|
|
|
- const relations = await this.find({ relatedUser: user.id })
|
|
|
|
|
|
|
+ const relations = await this.find({ relatedUser: user._id })
|
|
|
.select('relatedGroup')
|
|
.select('relatedGroup')
|
|
|
.exec();
|
|
.exec();
|
|
|
|
|
|