core: use Types.ArrayOf to replace Types.Array

This commit is contained in:
undefined committed 2023-01-20 03:34:18 +08:00
1 parent 760c585ac5
commit 37af6fd5a6
7 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -784,7 +784,7 @@ export class ProblemFilesHandler extends ProblemDetailHandler {
this.back();
}
@post('files', Types.Array)
@post('files', Types.ArrayOf(Types.Name))
@post('type', Types.Range(['testdata', 'additional_file']), true)
async postDeleteFiles(domainId: string, files: string[], type = 'testdata') {
if (this.pdoc.reference) throw new ProblemIsReferencedError('delete files');