MCPcopy Create free account
hub / github.com/dfinity/orbit / get_active_users_in_groups

Method get_active_users_in_groups

core/station/impl/src/services/user.rs:191–197  ·  view source on GitHub ↗

Returns the list of active users in the given groups.

(&self, group_ids: &[UserGroupId])

Source from the content-addressed store, hash-verified

189
190 /// Returns the list of active users in the given groups.
191 pub fn get_active_users_in_groups(&self, group_ids: &[UserGroupId]) -> Vec<User> {
192 self.user_repository.find_where(UserWhereClause {
193 search_term: None,
194 groups: Some(group_ids.to_vec()),
195 statuses: Some(vec![UserStatus::Active]),
196 })
197 }
198
199 /// Returns the list of users from the given pagination parameters.
200 ///

Callers 1

sync_committeeMethod · 0.80

Calls 2

to_vecMethod · 0.80
find_whereMethod · 0.45

Tested by

no test coverage detected