fix: add db() helper to ingest_diagnosticos.php
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2ac8f3ad43
commit
418485197b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user