aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-01 09:19:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-01 09:19:59 +0300
commit0a55c353d61c1f3fa624a1d0c68c419868266095 (patch)
treec3e6882a4fab064802b0c4477e61b9ba4bfe21fd /api
parent32a5805a89e7ebb88d2f0aa66b7fd80749195121 (diff)
downloadarching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.tar.gz
arching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.tar.bz2
arching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.zip
Return json parse instead of stringified
Diffstat (limited to 'api')
-rw-r--r--api/routes/getAkid/index.js2
1 files changed, 1 insertions, 1 deletions
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}`);
});
};