一些优化

优化 Date.prototype.format
修复题目分类解析错误的问题
Interface Tdoc
X-Forwarded-For 支持
This commit is contained in:
undefined committed 2020-07-12 18:59:00 +08:00
1 parent 1722fbfaca
commit 82c193b5ee
19 files changed
+289 -182

No files matched your search

+3
View File
@@ -12,6 +12,7 @@ import * as system from '../model/system';
import {
Route, Handler, Types, param,
} from '../service/server';
import { Tdoc } from '../interface';
async function _parseDagJson(domainId, dag) {
const parsed = [];
@@ -199,6 +200,8 @@ class TrainingCreateHandler extends Handler {
}
class TrainingEditHandler extends Handler {
tdoc: Tdoc;
@param('tid', Types.ObjectID)
async prepare(domainId: string, tid: ObjectID) {
this.tdoc = await training.get(domainId, tid);