community: stable/unstable

This commit is contained in:
Girish Ramakrishnan
2026-02-09 15:36:50 +01:00
parent 5a56a7c8af
commit b9b8ccb8ae
+4 -1
View File
@@ -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
};
}