core: add domainId to problem/add event

This commit is contained in:
undefined committed 2021-12-07 21:22:08 +08:00
1 parent 3f872a7b84
commit d565d3f935
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "3.2.9", "version": "3.2.10",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
+1
View File
@@ -105,6 +105,7 @@ export class ProblemModel {
args.content = content; args.content = content;
args.owner = owner; args.owner = owner;
args.docType = document.TYPE_PROBLEM; args.docType = document.TYPE_PROBLEM;
args.domainId = domainId;
await bus.emit('problem/add', args, result); await bus.emit('problem/add', args, result);
return result; return result;
} }