core: update problem/before-add hook

This commit is contained in:
undefined committed 2021-06-09 22:11:56 +08:00
1 parent de96722d57
commit 7dc88889c3
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ export class ProblemModel {
title, tag, hidden, nSubmit: 0, nAccept: 0,
};
if (pid) args.pid = pid;
await bus.serial('problem/before-add', args);
await bus.serial('problem/before-add', domainId, content, owner, docId, args);
const result = await document.add(domainId, content, owner, document.TYPE_PROBLEM, docId, null, null, args);
args.content = content;
args.owner = owner;