军团:添加邮件

This commit is contained in:
luying
2021-01-24 11:58:03 +08:00
parent cd7d0c7e62
commit b5d84c03e4
10 changed files with 143 additions and 43 deletions

View File

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