Add debug logging to promote-user endpoint

🐛 Debug:
- Log request body type and content
- Identify why JSON parsing is failing
- Temporary debug version to diagnose issue
This commit is contained in:
Randall Stillwell 2025-07-22 07:10:14 -05:00
parent 028c5396f3
commit 5dd7de86ad

View file

@ -11,6 +11,9 @@ export default async function handler(req, res) {
} }
try { try {
console.log('Request body type:', typeof req.body);
console.log('Request body:', req.body);
const { username, userId } = req.body; const { username, userId } = req.body;
if (!username && !userId) { if (!username && !userId) {