fix again 获取奇遇使用不重复关卡id

This commit is contained in:
luying
2020-10-30 20:12:35 +08:00
parent 858b79339c
commit 70e88a33a5
2 changed files with 19 additions and 7 deletions
@@ -1,5 +1,6 @@
import {Application, BackendSession} from 'pinus';
import { RoleModel } from '../../../db/Role';
import { EventRecordModel } from '../../../db/EventRecord';
import { getEvent } from '../../../services/eventSercive';
import { resResult } from '../../../pubUtils/util';
import { STATUS } from '../../../consts/statusCode';
@@ -40,4 +41,11 @@ export class GmHandler {
}]);
return resResult(STATUS.SUCCESS, { list: event });
}
async clearEvent(msg: { }, session: BackendSession) {
let roleId = session.get('roleId');
await EventRecordModel.deleteAccount(roleId);
return resResult(STATUS.SUCCESS);
}
}