Prefix all pine options with '$' in preload to avoid pine warnings.

Change-Type: patch
This commit is contained in:
Alexis Svinartchouk 2018-03-23 15:20:18 +00:00
parent 50b1a7e6b0
commit ca1ac2bb83

View File

@ -25,7 +25,7 @@ getApplicationsWithSuccessfulBuilds = (deviceType) ->
resin.pine.get
resource: 'my_application'
options:
filter:
$filter:
device_type: deviceType
owns__release:
$any:
@ -33,9 +33,9 @@ getApplicationsWithSuccessfulBuilds = (deviceType) ->
$expr:
r:
status: 'success'
expand: preload.applicationExpandOptions
select: [ 'id', 'app_name', 'device_type', 'commit', 'should_track_latest_release' ]
orderby: 'app_name asc'
$expand: preload.applicationExpandOptions
$select: [ 'id', 'app_name', 'device_type', 'commit', 'should_track_latest_release' ]
$orderby: 'app_name asc'
selectApplication = (deviceType) ->
visuals = require('resin-cli-visuals')