docs(bigbot): fix REST body handling (#4464)

This commit is contained in:
Fleny
2025-09-19 19:22:07 +05:30
committed by GitHub
parent 3ee8b48658
commit a4c0159b9d
+1 -1
View File
@@ -76,7 +76,7 @@ app.all('/*', async (req, res) => {
try { try {
const result = await REST.makeRequest(req.method, req.url.substring(4), { 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) { if (result) {