async function getUsers(): Promise<void> {
usersState.forEach(async (user) => {
const { response } = await makeRequest(
userApi.getUsersById({
userId: user.id,
limit: 99
...
}),
responseStatus
)
if (response !== undefined) {
user.isActiveUser = response.length > 0
}
})
...еще какие-то действия
}