活动:修复初始

This commit is contained in:
luying
2022-04-07 14:51:43 +08:00
parent 21a71c9c84
commit f20583125d
3 changed files with 5 additions and 5 deletions

View File

@@ -106,8 +106,8 @@ export default class Serverlist extends BaseModel {
return server;
}
public static async findByServerIds(serverIds: number[]) {
let servers: ServerlistType[] = await ServerlistModel.find({ id: { $in: serverIds } }).select('medianCe activityGroupId').lean({ getters: true, virtuals: true });
public static async findByServerIds(serverIds: number[], select?: string) {
let servers: ServerlistType[] = await ServerlistModel.find({ id: { $in: serverIds } }).select(select).lean({ getters: true, virtuals: true });
return servers;
}