Merge pull request #939 from balena-io/fix-migration-pinejs-update

fix: Correct use of $expand to avoid an exception when updating from …
This commit is contained in:
Pablo Carranza Vélez 2019-03-18 10:57:43 -07:00 committed by GitHub
commit 46c99e7001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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