mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Fix
This commit is contained in:
@@ -148,7 +148,7 @@ async fn get_author_books(
|
||||
let author = db
|
||||
.author()
|
||||
.find_unique(
|
||||
author::id::equals(author_id)
|
||||
author::id::equals(author_id),
|
||||
)
|
||||
.with(
|
||||
author::author_annotation::fetch()
|
||||
@@ -165,6 +165,7 @@ async fn get_author_books(
|
||||
let books_count = db
|
||||
.book()
|
||||
.count(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_authors::some(vec![
|
||||
book_author::author_id::equals(author_id)
|
||||
]),
|
||||
@@ -177,6 +178,7 @@ async fn get_author_books(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_authors::some(vec![
|
||||
book_author::author_id::equals(author_id)
|
||||
]),
|
||||
@@ -229,6 +231,7 @@ async fn get_author_books_available_types(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_authors::some(vec![
|
||||
book_author::author_id::equals(author_id)
|
||||
]),
|
||||
|
||||
@@ -137,6 +137,7 @@ async fn get_sequence_available_types(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_sequences::some(vec![
|
||||
book_sequence::sequence_id::equals(sequence_id)
|
||||
]),
|
||||
@@ -184,6 +185,7 @@ async fn get_sequence_books(
|
||||
let books_count = db
|
||||
.book()
|
||||
.count(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_sequences::some(vec![
|
||||
book_sequence::sequence_id::equals(sequence_id)
|
||||
]),
|
||||
@@ -196,6 +198,7 @@ async fn get_sequence_books(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::book_sequences::some(vec![
|
||||
book_sequence::sequence_id::equals(sequence_id)
|
||||
]),
|
||||
|
||||
@@ -33,6 +33,7 @@ async fn get_translated_books(
|
||||
let books_count = db
|
||||
.book()
|
||||
.count(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::translations::some(vec![
|
||||
translator::author_id::equals(translator_id)
|
||||
]),
|
||||
@@ -45,6 +46,7 @@ async fn get_translated_books(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::translations::some(vec![
|
||||
translator::author_id::equals(translator_id)
|
||||
]),
|
||||
@@ -97,6 +99,7 @@ async fn get_translated_books_available_types(
|
||||
let books = db
|
||||
.book()
|
||||
.find_many(vec![
|
||||
book::is_deleted::equals(false),
|
||||
book::translations::some(vec![
|
||||
translator::author_id::equals(translator_id)
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user