refactors

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 03:42:31 +00:00
parent 861ca016aa
commit 55a00bf1ad
7 changed files with 498 additions and 18 deletions

View File

@@ -499,9 +499,20 @@ class Igny8RestAPI {
);
}
// DIAGNOSTIC: Log raw request body
$raw_body = $request->get_body();
error_log('========== RAW REQUEST BODY ==========');
error_log($raw_body);
error_log('======================================');
// Get content data from POST body (IGNY8 backend already sends everything)
$content_data = $request->get_json_params();
// DIAGNOSTIC: Log parsed JSON
error_log('========== PARSED JSON DATA ==========');
error_log(print_r($content_data, true));
error_log('======================================');
// Extract IDs for validation
$content_id = isset($content_data['content_id']) ? $content_data['content_id'] : null;
$task_id = isset($content_data['task_id']) ? $content_data['task_id'] : null;