军团:修改弹劾逻辑
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user