merge upstream
All checks were successful
mnemo-build-and-publish / gractwo-mnemo-build (push) Successful in 1m5s
All checks were successful
mnemo-build-and-publish / gractwo-mnemo-build (push) Successful in 1m5s
This commit is contained in:
@@ -88,7 +88,7 @@ impl User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_all(conn: &mut PgConnection) -> Result<Vec<User>, UserError> {
|
pub async fn get_all(conn: &mut PgConnection) -> Result<Vec<User>, UserError> {
|
||||||
let rows = sqlx::query("SELECT id, handle FROM users")
|
let rows = sqlx::query("SELECT id, handle FROM users ORDER BY id")
|
||||||
.fetch_all(conn)
|
.fetch_all(conn)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user