diff --git a/website/docs/bigbot/step-2-rest.md b/website/docs/bigbot/step-2-rest.md index 84f678135..8b14a80ea 100644 --- a/website/docs/bigbot/step-2-rest.md +++ b/website/docs/bigbot/step-2-rest.md @@ -76,7 +76,7 @@ app.all('/*', async (req, res) => { try { const result = await REST.makeRequest(req.method, req.url.substring(4), { - body: req.method !== 'DELETE' && req.method !== 'GET' ? {} : req.body, + body: req.method !== 'DELETE' && req.method !== 'GET' ? req.body : undefined, }) if (result) {