移除多余接口

This commit is contained in:
undefined committed 2021-02-05 17:30:22 +08:00
1 parent 33aaf1f2ea
commit 0ceb095314
4 files changed
+9 -15

No files matched your search

+2 -7
View File
@@ -260,16 +260,11 @@ export class ProblemPretestHandler extends ProblemDetailHandler {
@param('lang', Types.String)
@param('code', Types.String)
@param('input', Types.String, true)
async post(domainId: string, lang: string, code: string, input: string = '') {
async post(domainId: string, lang: string, code: string, input = '') {
this.limitRate('add_record', 3600, 100);
const rid = await record.add(
domainId, this.pdoc.docId, this.user._id,
lang, code, true,
{
input,
time: '1s',
memory: '512m',
},
lang, code, true, input,
);
const rdoc = await record.get(domainId, rid);
bus.boardcast('record/change', rdoc);