1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Remove unnecessary type cast.

This commit is contained in:
Sam Rose 2023-11-08 09:24:51 +00:00
parent fdfda100c1
commit 57eb23dc50
No known key found for this signature in database

View file

@ -81,7 +81,7 @@ async function syncUsersToApp(
export async function syncUsersToAllApps(userIds: string[]) { export async function syncUsersToAllApps(userIds: string[]) {
// list of users, if one has been deleted it will be undefined in array // list of users, if one has been deleted it will be undefined in array
const users = (await getRawGlobalUsers(userIds)) as User[] const users = await getRawGlobalUsers(userIds)
const groups = await proSdk.groups.fetch() const groups = await proSdk.groups.fetch()
const finalUsers: (User | DeletedUser)[] = [] const finalUsers: (User | DeletedUser)[] = []
for (let userId of userIds) { for (let userId of userIds) {