[server/device-info] Actually use the device-id parameter

This commit is contained in:
Starbeamrainbowlabs 2019-01-18 23:02:24 +00:00
parent 962768272a
commit 73cd2a77dc
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 1 deletions

View File

@ -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 = [];