fix: update SQL insert statement in CounterServer module and increment build number in library.json
This commit is contained in:
@@ -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
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"build": 3,
|
"build": 4,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user