Fix translator books ordering

This commit is contained in:
2023-12-13 14:27:55 +01:00
parent 32366e2f5a
commit e8032da027

View File

@@ -64,7 +64,7 @@ async fn get_translated_books(
.with(book_author::author::fetch().with(author::author_annotation::fetch())), .with(book_author::author::fetch().with(author::author_annotation::fetch())),
) )
.with(book::book_sequences::fetch(vec![]).with(book_sequence::sequence::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) .skip((pagination.page - 1) * pagination.size)
.take(pagination.size) .take(pagination.size)
.exec() .exec()