[server/list-devices] Tweak prorperty names

This commit is contained in:
Starbeamrainbowlabs 2019-01-17 15:52:42 +00:00
parent f0781948f3
commit 4a2b8fc3c6
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -36,10 +36,10 @@ class MariaDBDeviceRepository implements IDeviceRepository {
$s = $this->get_static; $s = $this->get_static;
$sql = "SELECT $sql = "SELECT
{$s("column_device_id")}, {$s("column_device_id")} AS id,
{$s("column_device_name")}, {$s("column_device_name")} AS name,
{$s("column_lat")}, {$s("column_lat")} AS latitude,
{$s("column_long")} {$s("column_long")} AS longitude
FROM {$s("table_name")}"; FROM {$s("table_name")}";
if($only_with_location) if($only_with_location)