added the scroll bar
This commit is contained in:
@@ -93,6 +93,13 @@ pub async fn list(db: &DatabaseConnection, limit: u64, offset: u64) -> DbResult<
|
||||
.await?)
|
||||
}
|
||||
|
||||
pub async fn list_all(db: &DatabaseConnection) -> DbResult<Vec<Artist>> {
|
||||
Ok(Artists::find()
|
||||
.order_by_asc(Expr::cust("LOWER(name)"))
|
||||
.all(db)
|
||||
.await?)
|
||||
}
|
||||
|
||||
pub async fn update(db: &DatabaseConnection, id: i32, model: ActiveModel) -> DbResult<Artist> {
|
||||
let mut active = model;
|
||||
active.id = Set(id);
|
||||
|
||||
Reference in New Issue
Block a user