mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: feedback: ignore CI environment
This commit is contained in:
1 parent
400d0f10af
commit
98bf0d62a3
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.15.11",
|
"version": "3.15.12",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
|
|||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
if (process.env.CI) return [mid, $update];
|
||||||
superagent.post(`${system.get('server.center')}/report`)
|
superagent.post(`${system.get('server.center')}/report`)
|
||||||
.send({ installId, payload })
|
.send({ installId, payload })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
Reference in new issue
Block a user