fix: Correct use of $expand to avoid an exception when updating from a legacy OS

The last update of pinejs-client to pinejs-client-request made the way we were
using $expand on the migration break. This switches to the correct way of doing it now.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
Pablo Carranza Velez 2019-03-18 09:49:28 -07:00
parent 40786dda9d
commit d64dcb4b40

View File

@ -172,7 +172,8 @@ module.exports = class DeviceState extends EventEmitter
commit: app.commit
status: 'success'
$expand:
contains__image: [ 'image' ]
contains__image:
$expand: 'image'
)
.then (releasesFromAPI) =>
if releasesFromAPI.length == 0