From 76dd3d855219b04ccc0ad05d60afc7ef46a13618 Mon Sep 17 00:00:00 2001 From: Sameer Dev Date: Mon, 13 Jan 2025 08:23:01 +0000 Subject: [PATCH] code update recorded at: 13/01/25 08:23:01 --- handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.js b/handler.js index 8b78778..8bc7f6d 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 });