From 32366e2f5a8383916351b2180fc3a4a04955898b Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 13 Dec 2023 13:52:56 +0100 Subject: [PATCH] Update author books ordering --- src/views/authors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/authors.rs b/src/views/authors.rs index c756e8e..6477fb3 100644 --- a/src/views/authors.rs +++ b/src/views/authors.rs @@ -144,7 +144,7 @@ async fn get_author_books( .with(translator::author::fetch().with(author::author_annotation::fetch())), ) .with(book::book_sequences::fetch(vec![]).with(book_sequence::sequence::fetch())) - .order_by(book::id::order(prisma_client_rust::Direction::Asc)) + .order_by(book::title::order(prisma_client_rust::Direction::Asc)) .skip((pagination.page - 1) * pagination.size) .take(pagination.size) .exec()