refactors
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user