community: stable/unstable
This commit is contained in:
+4
-1
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user