fix: update SQL insert statement in CounterServer module and increment build number in library.json

This commit is contained in:
jhartworks
2026-04-16 13:36:07 +02:00
parent 24f25f17eb
commit 3df0f898db
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -66,13 +66,11 @@ class CounterServer extends IPSModule
// ---------- UPSERT ---------- // ---------- UPSERT ----------
$sql = " $sql = "
INSERT INTO meter_devices INSERT INTO meter_devices
(project_id, counter_id, meter_uuid, meter_name, external_id, external_name, meter_type, billing_unit, is_active) (project_id, counter_id, meter_uuid, external_id, external_name, meter_type, billing_unit, is_active)
VALUES VALUES
( (
" . ($projectId === 'NULL' ? 'NULL' : $projectId) . ", " . ($projectId === 'NULL' ? 'NULL' : $projectId) . ",
'" . $this->esc($counterId) . "',
'" . $this->esc($clientId . '_' . $counterId) . "', '" . $this->esc($clientId . '_' . $counterId) . "',
'" . $this->esc($counterName) . "',
'" . $this->esc($counterId) . "', '" . $this->esc($counterId) . "',
'" . $this->esc($clientId) . "', '" . $this->esc($clientId) . "',
'" . $this->esc($clientName) . "', '" . $this->esc($clientName) . "',
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200 "date": 1491343200
}, },
"version": "1.0", "version": "1.0",
"build": 3, "build": 4,
"date": 0 "date": 0
} }