fix test + change name

This commit is contained in:
Louis Dureuil 2025-04-02 17:56:34 +02:00
parent f3ab940776
commit 70ed6ba798
No known key found for this signature in database
4 changed files with 228 additions and 217 deletions

View file

@ -22,7 +22,7 @@ pub struct BatchView {
#[serde(with = "time::serde::rfc3339::option", default)]
pub finished_at: Option<OffsetDateTime>,
#[serde(default = "meilisearch_types::batches::default_stop_reason")]
pub stop_reason: String,
pub batcher_stopped_because: String,
}
impl BatchView {
@ -35,7 +35,7 @@ impl BatchView {
duration: batch.finished_at.map(|finished_at| finished_at - batch.started_at),
started_at: batch.started_at,
finished_at: batch.finished_at,
stop_reason: batch.stop_reason.clone(),
batcher_stopped_because: batch.stop_reason.clone(),
}
}
}