mirror of
https://github.com/flibusta-apps/meilie_updater.git
synced 2025-12-06 07:05:37 +01:00
Fix bugs
This commit is contained in:
@@ -63,7 +63,7 @@ pub struct Author {
|
||||
pub middle_name: String,
|
||||
pub author_langs: Vec<String>,
|
||||
pub translator_langs: Vec<String>,
|
||||
pub books_count: i32,
|
||||
pub books_count: i64,
|
||||
}
|
||||
|
||||
impl UpdateModel for Author {
|
||||
@@ -140,7 +140,7 @@ pub struct Sequence {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
pub langs: Vec<String>,
|
||||
pub books_count: i32
|
||||
pub books_count: i64
|
||||
}
|
||||
|
||||
impl UpdateModel for Sequence {
|
||||
@@ -201,8 +201,8 @@ pub struct Genre {
|
||||
pub id: i32,
|
||||
pub description: String,
|
||||
pub meta: String,
|
||||
pub langs: String,
|
||||
pub books_count: String,
|
||||
pub langs: Vec<String>,
|
||||
pub books_count: i64,
|
||||
}
|
||||
|
||||
impl UpdateModel for Genre {
|
||||
|
||||
@@ -63,7 +63,7 @@ where
|
||||
})
|
||||
.collect();
|
||||
|
||||
if let Err(err) = index.add_documents(&items, Some("id")).await {
|
||||
if let Err(err) = index.add_or_replace(&items, Some("id")).await {
|
||||
return Err(Box::new(err));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user