core: fix skipUpload types

This commit is contained in:
undefined committed 2022-04-11 16:49:17 +08:00
1 parent 902393e587
commit 10950ce8b9
1 file changed
+1 -1
+1 -1
View File
@@ -853,7 +853,7 @@ export class ProblemCreateHandler extends Handler {
if (this.user._files.find((i) => i.name === file)) {
tasks.push(
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) }),
);
}