fix: add db() helper to ingest_diagnosticos.php

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-17 15:07:56 -05:00
co-authored by Claude Sonnet 4.6
parent 2ac8f3ad43
commit 418485197b
+4
View File
@@ -28,6 +28,10 @@ if (!$keyHeader || !hash_equals(LAB_SYNC_KEY, $keyHeader)) {
exit;
}
function db(): \PDO {
return Database::getInstance()->getConnection();
}
$data = json_decode(file_get_contents('php://input'), true);
if (!is_array($data) || empty($data['rows']) || !is_array($data['rows'])) {
http_response_code(400);