From d64dcb4b4060d3e6fd84382d3b12c6d8a3fe2310 Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Mon, 18 Mar 2019 09:49:28 -0700 Subject: [PATCH] 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 --- src/device-state.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device-state.coffee b/src/device-state.coffee index 6f748824..474f3ef0 100644 --- a/src/device-state.coffee +++ b/src/device-state.coffee @@ -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