diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 09:19:59 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 09:19:59 +0300 |
commit | 0a55c353d61c1f3fa624a1d0c68c419868266095 (patch) | |
tree | c3e6882a4fab064802b0c4477e61b9ba4bfe21fd | |
parent | 32a5805a89e7ebb88d2f0aa66b7fd80749195121 (diff) | |
download | arching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.tar.gz arching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.tar.bz2 arching-kaos-tools-0a55c353d61c1f3fa624a1d0c68c419868266095.zip |
Return json parse instead of stringified
-rw-r--r-- | api/routes/getAkid/index.js | 2 |
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}`); }); }; |