mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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",
|
||||
"version": "3.15.11",
|
||||
"version": "3.15.12",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -61,6 +61,7 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
|
||||
return value;
|
||||
},
|
||||
}));
|
||||
if (process.env.CI) return [mid, $update];
|
||||
superagent.post(`${system.get('server.center')}/report`)
|
||||
.send({ installId, payload })
|
||||
.then((res) => {
|
||||
|
||||
Reference in new issue
Block a user