Removing the alert log of failure, this isn't really an error scenario, as it'll automatically get updated as part of app syncs and if the sync is reran.

This commit is contained in:
mike12345567 2023-07-03 15:28:42 +01:00
parent 6691b2d4ed
commit 76bce0be1a
1 changed files with 1 additions and 6 deletions

View File

@ -105,12 +105,7 @@ export async function syncUsersToAllApps(userIds: string[]) {
promises.push(syncUsersToApp(appId, finalUsers, groups)) promises.push(syncUsersToApp(appId, finalUsers, groups))
} }
} }
const resp = await Promise.allSettled(promises) return await Promise.allSettled(promises)
const failed = resp.filter(promise => promise.status === "rejected")
if (failed.length > 0) {
const reasons = failed.map(fail => (fail as PromiseRejectedResult).reason)
logging.logAlert("Failed to sync users to apps", reasons)
}
} }
export async function syncApp( export async function syncApp(