Rename batch_creation_complete to batch_strategy

This commit is contained in:
Louis Dureuil 2025-05-22 12:19:54 +02:00
parent ae3c4e27c4
commit 4d761d3444
No known key found for this signature in database

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 batch_creation_complete: String,
pub batch_strategy: 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,
batch_creation_complete: batch.stop_reason.clone(),
batch_strategy: batch.stop_reason.clone(),
}
}
}