mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
[server/device-info] Actually use the device-id parameter
This commit is contained in:
parent
962768272a
commit
73cd2a77dc
1 changed files with 4 additions and 1 deletions
|
@ -76,7 +76,10 @@ class MariaDBDeviceRepository implements IDeviceRepository {
|
||||||
{$s("table_name_type")}.*
|
{$s("table_name_type")}.*
|
||||||
FROM {$s("table_name")}
|
FROM {$s("table_name")}
|
||||||
JOIN {$s("table_name_type")} ON
|
JOIN {$s("table_name_type")} ON
|
||||||
{$s("table_name")}.{$s("column_device_type")} = {$s("table_name_type")}.{$s("column_type_id")};"
|
{$s("table_name")}.{$s("column_device_type")} = {$s("table_name_type")}.{$s("column_type_id")}
|
||||||
|
WHERE {$s("table_name")}.{$s("column_device_id")} = :device_id;", [
|
||||||
|
"device_id" => $device_id
|
||||||
|
]
|
||||||
)->fetch(); // gets the next row from the query
|
)->fetch(); // gets the next row from the query
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
Loading…
Reference in a new issue