✨ feat(gvg): 玩家驻扎排行榜
This commit is contained in:
@@ -145,7 +145,7 @@ export async function setGVGServerGroup() {
|
||||
const servers = await ServerlistModel.findByEnv(pinus.app.get('env'));
|
||||
const serverGroups = await GVGServerGroupModel.findByTime(nowSeconds());
|
||||
pinus.app.set('gvgServerGroup', servers.map(obj => {
|
||||
let server = serverGroups.find(cur => cur.serverId == obj.serverId);
|
||||
let server = serverGroups.find(cur => cur.serverId == obj.id);
|
||||
return { serverId: obj.id, groupId: server? server.groupId: obj.groupId }
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user