mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
core: use Types.ArrayOf to replace Types.Array
This commit is contained in:
1 parent
760c585ac5
commit
37af6fd5a6
7 files changed
+9
-8
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user