We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5c639 commit f48c4a2Copy full SHA for f48c4a2
src/services/user.rs
@@ -412,6 +412,15 @@ impl DbUserProfileRepository {
412
pub async fn get_user_profile_from_username(&self, username: &str) -> Result<UserProfile, Error> {
413
self.database.get_user_profile_from_username(username).await
414
}
415
+
416
+ /// It gets all the user profiles for all the users.
417
+ ///
418
+ /// # Errors
419
420
+ /// It returns an error if there is a database error.
421
+ pub async fn get_all_user_profiles(&self) -> Result<Vec<UserProfile>, Error> {
422
+ self.database.get_user_profiles().await
423
+ }
424
425
426
pub struct DbBannedUserList {
0 commit comments