From 3df0f898db188976225ec06b476d0e9628b88d68 Mon Sep 17 00:00:00 2001 From: jhartworks Date: Thu, 16 Apr 2026 13:36:07 +0200 Subject: [PATCH] fix: update SQL insert statement in CounterServer module and increment build number in library.json --- CounterServer/module.php | 4 +--- library.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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