mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
center: fix null check
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -84,7 +84,7 @@ class DataReportHandler extends Handler {
|
|||||||
}
|
}
|
||||||
this.ctx.emit('center/report', this, installId, old, payload);
|
this.ctx.emit('center/report', this, installId, old, payload);
|
||||||
// TODO deliver messages
|
// TODO deliver messages
|
||||||
this.response.body = { code: 0, u: lt(payload.version, old.version) };
|
this.response.body = { code: 0 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/center",
|
"name": "@hydrooj/center",
|
||||||
"version": "0.2.4",
|
"version": "0.2.5",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
|
|||||||
Reference in new issue
Block a user