added the scroll bar
This commit is contained in:
@@ -94,7 +94,11 @@ async fn list_artists(
|
||||
query: web::Query<PaginationParams>,
|
||||
) -> Result<HttpResponse, ApiError> {
|
||||
auth::require_auth(&session)?;
|
||||
let artists = queries::artists::list(state.db.conn(), query.limit, query.offset).await?;
|
||||
let artists = if query.limit == 0 {
|
||||
queries::artists::list_all(state.db.conn()).await?
|
||||
} else {
|
||||
queries::artists::list(state.db.conn(), query.limit, query.offset).await?
|
||||
};
|
||||
|
||||
let wanted = queries::wanted::list(state.db.conn(), None, None).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user