From 8830411787d5f1889d9a529b6a6c3ec86aabd67d Mon Sep 17 00:00:00 2001 From: Sameer Dev Date: Mon, 13 Jan 2025 08:21:29 +0000 Subject: [PATCH] code update recorded at: 13/01/25 08:21:29 --- handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.js b/handler.js index 8bc7f6d..8b78778 100644 --- a/handler.js +++ b/handler.js @@ -172,7 +172,7 @@ export const handler = async (req, res) => { console.log('Command executed successfully:', JSON.stringify(result)); res.setHeader('Content-Type', 'application/json'); - res.status(200).json(result); + res.status(200).json(...result); } catch (error) { console.error('Error handling request:', error.message); res.status(500).json({ error: error.message });