mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-23 18:33:35 +00:00
Use the api to do the filtering, avoiding fetching unnecessary data.
This commit is contained in:
parent
03f7b11c8b
commit
644ad14295
@ -179,6 +179,7 @@ exports.update = update = ->
|
||||
'commit'
|
||||
]
|
||||
filter:
|
||||
commit: $ne: null
|
||||
device:
|
||||
uuid: uuid
|
||||
customOptions:
|
||||
@ -186,7 +187,6 @@ exports.update = update = ->
|
||||
)
|
||||
.then (remoteApps) ->
|
||||
console.log('Remote apps')
|
||||
remoteApps = _.filter(remoteApps, 'commit')
|
||||
remoteApps = _.map remoteApps, (app) ->
|
||||
env =
|
||||
RESIN_DEVICE_UUID: uuid
|
||||
|
Loading…
x
Reference in New Issue
Block a user