mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: add domainId to problem/add event
This commit is contained in:
1 parent
3f872a7b84
commit
d565d3f935
2 files changed
+2
-1
No files matched your search
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user