core: bug fixes

This commit is contained in:
undefined committed 2022-10-29 14:30:42 +08:00
1 parent 5baf8f3207
commit 7f7d674dc4
6 files changed
+10 -10

No files matched your search

+2 -1
View File
@@ -22,7 +22,8 @@ const validatePenaltyRules = (input: string) => yaml.load(input);
const convertPenaltyRules = validatePenaltyRules;
class HomeworkMainHandler extends Handler {
async get({ domainId, page = 1 }) {
@param('page', Types.PositiveInt, true)
async get(domainId: string, page = 1) {
const cursor = contest.getMulti(domainId, { rule: 'homework' });
const [tdocs, tpcount] = await paginate<Tdoc>(cursor, page, system.get('pagination.contest'));
const calendar = [];