[FIX] Database::execute() → Database::query() in 5 controller

Database non ha metodo execute() — corretto in:
InviteController, ServicesController, WebhookController,
NormativeController, WhistleblowingController.
Causa del HTTP 500 su tutti gli endpoint /api/invites/*.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-03-07 16:49:58 +01:00
co-authored by Claude Sonnet 4.6
parent c906a6eff3
commit 9ccf2a72b5
5 changed files with 22 additions and 22 deletions
@@ -124,7 +124,7 @@ class NormativeController extends BaseController
if ($existing) {
// Aggiorna note se già ACK
Database::execute(
Database::query(
'UPDATE normative_ack SET notes = ?, acknowledged_by = ?, acknowledged_at = NOW()
WHERE normative_update_id = ? AND organization_id = ?',
[$notes ?: null, $this->getCurrentUserId(), $id, $orgId]