军团:修改弹劾逻辑

This commit is contained in:
luying
2021-06-28 17:06:23 +08:00
parent 15ab14aeaf
commit 94f0bf10f5
2 changed files with 13 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ export default class UserGuild extends BaseModel {
}
public static async findTopActive(guildCode: string, select?: string) {
const userGuilds: UserGuildType = await UserGuildModel.findOne({ guildCode, status: USER_GUILD_STATUS.ON, auth: { $ne: GUILD_AUTH.LEADER } })
const userGuilds: UserGuildType[] = await UserGuildModel.find({ guildCode, status: USER_GUILD_STATUS.ON, auth: { $ne: GUILD_AUTH.LEADER } })
.sort({ activeWeekly: -1, activeUpdateTime: 1 })
.select(select)
.populate('role', 'roleId roleName ce head frame spine lv title quitTime', 'Role')