[FIX] SIM-06 + EmailService + WebhookService + supplier assessment

- ServicesController::provision(): created_by usa userId (INT) non string
- EmailService::logEmail(): rimosso sent_at (colonna non esiste in email_log)
- WebhookService::incidentPayload(): status ?? 'detected' (null-safe)
- simulate-nis2.php: supplier assessment usa formato assessment_responses
  corretto [{question, weight, value: yes|partial|no}]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-03-09 09:56:39 +01:00
co-authored by Claude Sonnet 4.6
parent 4be541e9b5
commit 13df162ec4
4 changed files with 12 additions and 9 deletions
-1
View File
@@ -609,7 +609,6 @@ class EmailService
'recipient' => $to,
'subject' => mb_substr($subject, 0, 255),
'status' => $success ? 'sent' : 'failed',
'sent_at' => date('Y-m-d H:i:s'),
]);
} catch (\Throwable $e) {
error_log('[EmailService] Errore log email: ' . $e->getMessage());
+1 -1
View File
@@ -237,7 +237,7 @@ class WebhookService
'title' => $incident['title'],
'classification' => $incident['classification'],
'severity' => $incident['severity'],
'status' => $incident['status'],
'status' => $incident['status'] ?? 'detected',
'is_significant' => (bool)$incident['is_significant'],
'detected_at' => $incident['detected_at'],
'art23_deadlines' => [