Add logging to blocklist-search endpoint for debugging
- Log missing required fields to help diagnose blocklist issues - Shows which fields are present/absent in the request body
This commit is contained in:
@@ -255,6 +255,7 @@ router.post('/blocklist-search', requireAuth, async (req, res) => {
|
||||
const { arrQueueId, arrType, arrInstanceUrl, arrInstanceKey, arrContentId, arrContentType } = req.body;
|
||||
|
||||
if (!arrQueueId || !arrType || !arrInstanceUrl || !arrInstanceKey || !arrContentId || !arrContentType) {
|
||||
console.error('[Blocklist] Missing required fields:', { arrQueueId, arrType, arrInstanceUrl, hasKey: !!arrInstanceKey, arrContentId, arrContentType });
|
||||
return res.status(400).json({ error: 'Missing required fields' });
|
||||
}
|
||||
if (arrType !== 'sonarr' && arrType !== 'radarr') {
|
||||
|
||||
Reference in New Issue
Block a user