Reconfigure apps on dashboard domain change, if they use oidc addon

This commit is contained in:
Johannes Zellner
2023-07-21 17:10:25 +02:00
parent 00b5438ec5
commit 4c185fb3b4
3 changed files with 8 additions and 4 deletions

View File

@@ -2713,10 +2713,10 @@ async function restoreInstalledApps(options, auditSource) {
}
}
async function configureInstalledApps(auditSource) {
async function configureInstalledApps(apps, auditSource) {
assert(Array.isArray(apps));
assert.strictEqual(typeof auditSource, 'object');
let apps = await list();
apps = apps.filter(app => app.installationState !== exports.ISTATE_ERROR); // remove errored apps. let them be 'repaired' by hand
apps = apps.filter(app => app.installationState !== exports.ISTATE_PENDING_CONFIGURE); // safeguard against tasks being created non-stop if we crash on startup