Skip to content

Commit 06c2e1f

Browse files
committed
https://github.com/haxtheweb/issues/security/advisories/GHSA-fvx2-x7ff-fc56
1 parent 2ff0e50 commit 06c2e1f

File tree

2 files changed

+3
-70
lines changed

2 files changed

+3
-70
lines changed

api/community/haxPsuStats.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

api/services/stats/haxPsuUsage.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ export default async function handler(req, res) {
99
// process.env.HAX_STATS has our stats compiled by our staging system
1010
let data = await fetch(process.env.HAX_STATS).then((res) => {
1111
return res.json()
12-
});
12+
})
13+
// only return overall data
1314
if (data) {
14-
res = stdResponse(res, data || [], options);
15+
res = stdResponse(res, {overall: data.overall} || [], options);
1516
}
1617
else {
1718
res = invalidRequest(res, 'data from stats failed to load');

0 commit comments

Comments
 (0)