diff --git a/CounterServer/module.php b/CounterServer/module.php index bd1a7ce..a27a0d0 100644 --- a/CounterServer/module.php +++ b/CounterServer/module.php @@ -66,13 +66,11 @@ class CounterServer extends IPSModule // ---------- UPSERT ---------- $sql = " 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 ( " . ($projectId === 'NULL' ? 'NULL' : $projectId) . ", - '" . $this->esc($counterId) . "', '" . $this->esc($clientId . '_' . $counterId) . "', - '" . $this->esc($counterName) . "', '" . $this->esc($counterId) . "', '" . $this->esc($clientId) . "', '" . $this->esc($clientName) . "', diff --git a/library.json b/library.json index cd5158a..6b15683 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "1.0", - "build": 3, + "build": 4, "date": 0 } \ No newline at end of file