1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

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

View file

@ -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(