军团数据库表

This commit is contained in:
mamengke01
2021-01-18 13:32:21 +08:00
parent 492dcea2d9
commit a8965d4185
5 changed files with 133 additions and 1 deletions
+1
View File
@@ -232,6 +232,7 @@ export async function resetPvpRanks() {
const client: Redis.RedisClient = pinus.app.get('redis');
await client.delAsync(REDIS_KEY.PVP_RANK);
let { seasonNum } = await SystemConfigModel.findSystemConfig();
console.log('execute season resetPvpRanks seasonNum = ' + seasonNum);
let pvpRank = await PvpDefenseModel.getRank(seasonNum);
for(let {roleId, role: _role, score, updatedAt } of pvpRank) {
let role = <RoleType>_role;