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 });