活动:修复初始
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user