mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 17:38:19 +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
@@ -69,7 +69,7 @@ export class FilesHandler extends Handler {
|
||||
this.back();
|
||||
}
|
||||
|
||||
@post('files', Types.Array)
|
||||
@post('files', Types.ArrayOf(Types.Name))
|
||||
async postDeleteFiles(domainId: string, files: string[]) {
|
||||
await Promise.all([
|
||||
storage.del(files.map((t) => `user/${this.user._id}/${t}`), this.user._id),
|
||||
|
||||
Reference in new issue
Block a user