core: add replacer for dump

This commit is contained in:
undefined committed 2021-08-08 21:12:47 +08:00
1 parent e9a2128daa
commit d1facd61d1
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.32.9",
"version": "2.32.10",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+5
View File
@@ -46,6 +46,11 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
memory: inf.memory,
osinfo: inf.osinfo,
cpu: inf.cpu,
}, {
replacer: (key, value) => {
if (typeof value === 'function') return '';
return value;
},
}));
superagent.post(`${system.get('server.center')}/report`)
.send({ installId, payload })