core: 整合tag与category

This commit is contained in:
undefined committed 2021-03-07 14:25:16 +08:00
1 parent 454afbcb08
commit 7a41fecb0e
15 files changed
+116 -117

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ export class ProblemReceiveHandler extends Handler {
const exist = await problem.get(domainId, pdoc.pid);
if (exist) pdoc.pid = undefined;
}
const pid = await problem.add(domainId, pdoc.pid, pdoc.title, pdoc.content, this.user._id, pdoc.tag, pdoc.category);
const pid = await problem.add(domainId, pdoc.pid, pdoc.title, pdoc.content, this.user._id, pdoc.tag);
pids.push(pid);
this.syncFiles(domainId, baseUrl, pid, files[i]).catch(logAndReturn(logger));
await problem.edit(domainId, pid, { html: pdoc.html });