core: 放宽频率限制

This commit is contained in:
undefined committed 2021-07-01 09:35:54 +08:00
1 parent 213aa16c66
commit 4cf051c8d1
5 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -348,7 +348,7 @@ export class ContestDetailProblemSubmitHandler extends ContestProblemHandler {
if (this.domain.langs && !this.domain.langs.includes(lang)) {
throw new BadRequestError('Language not allowed');
}
await this.limitRate('add_record', 60, 10);
await this.limitRate('add_record', 60, system.get('limit.submission'));
const rid = await record.add(domainId, pid, this.user._id, lang, code, true, pretest ? input : {
type: document.TYPE_CONTEST,
tid,