From 5dd7de86ad3d0646a4d9ce782b682be830716c10 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 22 Jul 2025 07:10:14 -0500 Subject: [PATCH] Add debug logging to promote-user endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 Debug: - Log request body type and content - Identify why JSON parsing is failing - Temporary debug version to diagnose issue --- api/admin/promote-user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/admin/promote-user.js b/api/admin/promote-user.js index 02e3140..3dc85c1 100644 --- a/api/admin/promote-user.js +++ b/api/admin/promote-user.js @@ -11,6 +11,9 @@ export default async function handler(req, res) { } try { + console.log('Request body type:', typeof req.body); + console.log('Request body:', req.body); + const { username, userId } = req.body; if (!username && !userId) {