fix: correct SQL insert statement for projectId by fixing string concatenation
This commit is contained in:
@@ -71,7 +71,7 @@ class CounterServer extends IPSModule
|
|||||||
(project_id, counter_id, meter_uuid, 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
|
||||||
(
|
(
|
||||||
" . $this->esc($projectId) . "',
|
'" . $this->esc($projectId) . "',
|
||||||
'" . $this->esc($counterId) . "',
|
'" . $this->esc($counterId) . "',
|
||||||
'" . hash('sha256', $projectId.$clientId . '_' . $counterId) . "',
|
'" . hash('sha256', $projectId.$clientId . '_' . $counterId) . "',
|
||||||
'" . $this->esc($clientId) . "',
|
'" . $this->esc($clientId) . "',
|
||||||
|
|||||||
Reference in New Issue
Block a user