mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
移除多余接口
This commit is contained in:
1 parent
33aaf1f2ea
commit
0ceb095314
4 files changed
+9
-15
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user