Skip to content

Commit

Permalink
add deviceType identifier in getDeviceType query
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Sep 25, 2016
1 parent a49b29a commit b29b82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/devicetype/deviceType.queries.js
Original file line number Diff line number Diff line change
@@ -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 = ?;
Expand Down

0 comments on commit b29b82a

Please sign in to comment.