更新一下const的使用
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user