更新一下const的使用

This commit is contained in:
luying
2020-12-09 17:23:15 +08:00
parent 0bec9d8020
commit b052568832
10 changed files with 69 additions and 56 deletions

View File

@@ -1,7 +1,6 @@
import {Application, BackendSession} from 'pinus';
import { HeroModel } from '../../../db/Hero';
import Actor from '../../../pubUtils/actor';
import { updateCe } from '../../../pubUtils/util';
export default function(app: Application) {
return new ChatHandler(app);
@@ -11,14 +10,6 @@ export class ChatHandler {
constructor(private app: Application) {
}
async test(msg: {}, session: BackendSession) {
let roleId = session.get('roleId')
let hero = await HeroModel.find().limit(1000);
for(let h of hero) {
await updateCe(h.roleId, h);
}
return 'success'
}
/**
* Send messages to users
*