fix: 军团获取成员信息

This commit is contained in:
luying
2021-01-20 15:53:42 +08:00
parent 9b6ca78d88
commit d9eda973ed
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ export default class UserGuild extends BaseModel {
public static async getListByGuild(guildCode: string, select?: string) {
const userGuilds: UserGuildType[] = await UserGuildModel.find({ guildCode, status: USER_GUILD_STATUS.ON })
.select(select)
.populate('role', 'roleId roleName ce headHid sHid lv title', 'Role')
.populate('role', 'roleId roleName ce headHid sHid lv title loginTime', 'Role')
.lean();
return userGuilds;
}