hopefully a fix for the enrich pipeline sometimes not running
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use chrono::Utc;
|
||||
use sea_orm::sea_query::Expr;
|
||||
use sea_orm::*;
|
||||
|
||||
use crate::entities::artist::{self, ActiveModel, Entity as Artists, Model as Artist};
|
||||
@@ -72,7 +73,7 @@ pub async fn find_by_name(db: &DatabaseConnection, name: &str) -> DbResult<Optio
|
||||
|
||||
pub async fn list(db: &DatabaseConnection, limit: u64, offset: u64) -> DbResult<Vec<Artist>> {
|
||||
Ok(Artists::find()
|
||||
.order_by_asc(artist::Column::Name)
|
||||
.order_by_asc(Expr::cust("LOWER(name)"))
|
||||
.limit(limit)
|
||||
.offset(offset)
|
||||
.all(db)
|
||||
|
||||
Reference in New Issue
Block a user