We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff0e50 commit 06c2e1fCopy full SHA for 06c2e1f
api/community/haxPsuStats.js
api/services/stats/haxPsuUsage.js
@@ -9,9 +9,10 @@ export default async function handler(req, res) {
9
// process.env.HAX_STATS has our stats compiled by our staging system
10
let data = await fetch(process.env.HAX_STATS).then((res) => {
11
return res.json()
12
- });
+ })
13
+ // only return overall data
14
if (data) {
- res = stdResponse(res, data || [], options);
15
+ res = stdResponse(res, {overall: data.overall} || [], options);
16
}
17
else {
18
res = invalidRequest(res, 'data from stats failed to load');
0 commit comments