From b29b82a5e75336da8066c1048c16e1e27cc7fd04 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Sun, 25 Sep 2016 11:36:35 +0200 Subject: [PATCH] add deviceType identifier in getDeviceType query --- api/core/devicetype/deviceType.queries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/devicetype/deviceType.queries.js b/api/core/devicetype/deviceType.queries.js index 7cc629f0bc..d691c7c080 100644 --- a/api/core/devicetype/deviceType.queries.js +++ b/api/core/devicetype/deviceType.queries.js @@ -1,7 +1,7 @@ module.exports = { getDeviceType: ` - SELECT dt.id, dt.type, dt.unit, dt.min, dt.max, d.identifier, dt.device, d.service + SELECT dt.id, dt.type, dt.unit, dt.min, dt.max, d.identifier, dt.device, d.service, dt.identifier as deviceTypeIdentifier FROM device d JOIN devicetype dt ON (d.id = dt.device) WHERE dt.id = ?;