Skip to content

Commit

Permalink
Merge group env into device live settings api response
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-Mcl committed Oct 18, 2024
1 parent dc4f010 commit 3790772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forge/routes/api/deviceLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ module.exports = async function (app) {
hash: request.device.settingsHash,
env: {}
}
const settings = await request.device.getAllSettings()
const settings = await request.device.getAllSettings({
mergeDeviceGroupSettings: true
})
Object.keys(settings).forEach(key => {
if (key === 'env') {
settings.env.forEach(envVar => {
Expand Down

0 comments on commit 3790772

Please sign in to comment.