Remove unnecessary type cast.
This commit is contained in:
parent
fdfda100c1
commit
57eb23dc50
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue