mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-29 15:44:26 +00:00
Make use of new ApplicationModel in apps list action
This commit is contained in:
parent
e4b0f3772b
commit
6afdd0e48a
@ -1,9 +1,8 @@
|
||||
server = require('../server/server')
|
||||
applicationModel = require('../models/application')
|
||||
|
||||
exports.list = ->
|
||||
|
||||
# TODO: The details of requesting the API should be handled
|
||||
# by the models. Make use of them once they are implemented
|
||||
server.get '/ewa/application?$orderby=app_name%20asc&$expand=device', (error, response) ->
|
||||
for app in response.body.d
|
||||
applicationModel.getAll().then (applications) ->
|
||||
for app in applications
|
||||
console.log "#{app.id} - #{app.app_name}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user