mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix: prepublish & record rejudge
This commit is contained in:
1 parent
4939b62b51
commit
7651b0a697
6 files changed
+13
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/geoip",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"main": "package.json",
|
||||
"repository": "git@github.com:hydro-dev/Hydro.git",
|
||||
"author": "undefined <masnn0@outlook.com>",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"version": "2.0.5",
|
||||
"main": "package.json",
|
||||
"version": "2.0.6",
|
||||
"main": "dist/service.js",
|
||||
"author": "masnn",
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -28,4 +28,4 @@
|
||||
"build": "tsc",
|
||||
"lint": "eslint . --ext ts --fix"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,7 @@ export async function judge(domainId: string, rid: ObjectID) {
|
||||
const pdoc = await problem.get(domainId, rdoc.pid);
|
||||
config = pdoc?.config || {};
|
||||
}
|
||||
delete rdoc._id;
|
||||
await task.add({
|
||||
...rdoc,
|
||||
type: 'judge',
|
||||
|
||||
Reference in new issue
Block a user