diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 39604ef58..8cde950a4 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "3.3.1", + "version": "3.3.2", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index 374584cf8..ba1032c39 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -150,11 +150,10 @@ export default class Hydro implements Session { } send(rid: string, key: 'next' | 'end', data: Partial) { - data.key = key; if (data.case && typeof data.case.message === 'string') data.case.message = removeNixPath(data.case.message); if (typeof data.message === 'string') data.message = removeNixPath(data.message); if (typeof data.compilerText === 'string') data.compilerText = removeNixPath(data.compilerText); - this.ws.send(JSON.stringify(data)); + this.ws.send(JSON.stringify({ ...data, rid, key })); } getNext(t: JudgeTask) {