diff --git a/src/community.js b/src/community.js index a748695a1..4c3078bf2 100644 --- a/src/community.js +++ b/src/community.js @@ -96,10 +96,13 @@ async function getAppUpdate(app, options) { if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version'); if (idx === sortedVersions.length-1) return null; // no update const nextVersion = versions[sortedVersions[idx+1]]; + const unstable = !versionsRoot.stable || nextVersion.publishState !== 'published'; return { id: app.manifest.id, - ...nextVersion // { manifest, publishState, creationDate, ts } + creationDate: nextVersion.creationDate, + manifest: nextVersion.manifest, + unstable }; }