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:
parent
6691b2d4ed
commit
76bce0be1a
|
@ -105,12 +105,7 @@ export async function syncUsersToAllApps(userIds: string[]) {
|
|||
promises.push(syncUsersToApp(appId, finalUsers, groups))
|
||||
}
|
||||
}
|
||||
const resp = 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)
|
||||
}
|
||||
return await Promise.allSettled(promises)
|
||||
}
|
||||
|
||||
export async function syncApp(
|
||||
|
|
Loading…
Reference in New Issue