Merge pull request #14016 from backstage/freben/stat

use response.status and response.json properly
This commit is contained in:
Fredrik Adelöw
2022-10-06 21:13:24 +02:00
committed by GitHub
20 changed files with 53 additions and 33 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ router.use('/summary', async (req, res) => {
]).then(async ([frobs, flerps, thunk]) => {
return computeAggregate(await frobs.json(), await flerps.json(), thunk);
});
res.status(200).send(agg);
res.status(200).json(agg);
});
```