style: change function name

This commit is contained in:
Radical 2025-05-20 22:20:32 +02:00
parent b66c8f0613
commit 4124b08bb2
2 changed files with 2 additions and 2 deletions

View file

@ -837,7 +837,7 @@ impl User {
Ok(user.build())
}
pub async fn fetch_all(pool: &Pool<Postgres>, start: i32, amount: i32) -> Result<Vec<Self>, HttpResponse> {
pub async fn fetch_amount(pool: &Pool<Postgres>, start: i32, amount: i32) -> Result<Vec<Self>, HttpResponse> {
let row = sqlx::query_as("SELECT CAST(uuid AS VARCHAR), username, display_name, avatar, email FROM users ORDER BY username LIMIT $1 OFFSET $2")
.bind(amount)
.bind(start)