mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add replacer for dump
This commit is contained in:
1 parent
e9a2128daa
commit
d1facd61d1
2 files changed
+6
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.32.9",
|
"version": "2.32.10",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -46,6 +46,11 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
|
|||||||
memory: inf.memory,
|
memory: inf.memory,
|
||||||
osinfo: inf.osinfo,
|
osinfo: inf.osinfo,
|
||||||
cpu: inf.cpu,
|
cpu: inf.cpu,
|
||||||
|
}, {
|
||||||
|
replacer: (key, value) => {
|
||||||
|
if (typeof value === 'function') return '';
|
||||||
|
return value;
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
superagent.post(`${system.get('server.center')}/report`)
|
superagent.post(`${system.get('server.center')}/report`)
|
||||||
.send({ installId, payload })
|
.send({ installId, payload })
|
||||||
|
|||||||
Reference in new issue
Block a user