From 0a55c353d61c1f3fa624a1d0c68c419868266095 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Sep 2023 09:19:59 +0300 Subject: Return json parse instead of stringified --- api/routes/getAkid/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/routes/getAkid/index.js') diff --git a/api/routes/getAkid/index.js b/api/routes/getAkid/index.js index 08787ad..34426e5 100644 --- a/api/routes/getAkid/index.js +++ b/api/routes/getAkid/index.js @@ -24,7 +24,7 @@ module.exports = (req, res) => { }); command.on("close", code => { - res.send(buffer); + res.send(JSON.parse(buffer)); console.log(`child process exited with code ${code}`); }); }; -- cgit v1.2.3