mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-10 18:30:22 +01:00
Fix
This commit is contained in:
@@ -5,6 +5,7 @@ use super::author::Author;
|
||||
use super::date::naive_date_serializer;
|
||||
|
||||
#[derive(sqlx::FromRow, sqlx::Type, Serialize)]
|
||||
#[sqlx(type_name = "sequence_type")]
|
||||
pub struct Sequence {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
@@ -20,8 +21,8 @@ pub struct SequenceBook {
|
||||
pub available_types: Vec<String>,
|
||||
#[serde(serialize_with = "naive_date_serializer::serialize")]
|
||||
pub uploaded: NaiveDate,
|
||||
pub authors: sqlx::types::Json<Vec<Author>>,
|
||||
pub translators: sqlx::types::Json<Vec<Author>>,
|
||||
pub authors: Vec<Author>,
|
||||
pub translators: Vec<Author>,
|
||||
pub annotation_exists: bool,
|
||||
pub position: i32,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user