mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix skipUpload types
This commit is contained in:
1 parent
902393e587
commit
10950ce8b9
1 file changed
+1
-1
@@ -853,7 +853,7 @@ export class ProblemCreateHandler extends Handler {
|
|||||||
if (this.user._files.find((i) => i.name === file)) {
|
if (this.user._files.find((i) => i.name === file)) {
|
||||||
tasks.push(
|
tasks.push(
|
||||||
storage.rename(`user/${this.user._id}/${file}`, `problem/${domainId}/${docId}/additional_file/${file}`, this.user._id)
|
storage.rename(`user/${this.user._id}/${file}`, `problem/${domainId}/${docId}/additional_file/${file}`, this.user._id)
|
||||||
.then(() => problem.addAdditionalFile(domainId, docId, file, '', true)),
|
.then(() => problem.addAdditionalFile(domainId, docId, file, '', this.user._id, true)),
|
||||||
user.setById(this.user._id, { _files: this.user._files.filter((i) => i.name !== file) }),
|
user.setById(this.user._id, { _files: this.user._files.filter((i) => i.name !== file) }),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user