mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Adjust + Cleanup changes.
Indeed, I missed some of the changed that were introduced by #3190.
This commit is contained in:
parent
4e6c663a2e
commit
0bc4572905
@ -210,15 +210,11 @@ impl V5IndexReader {
|
||||
|
||||
if *task.index_uid().unwrap_or_default().to_string() == name {
|
||||
if updated_at.is_none() {
|
||||
updated_at = task.updated_at()
|
||||
}
|
||||
|
||||
if created_at.is_none() {
|
||||
created_at = task.created_at()
|
||||
updated_at = task.processed_at()
|
||||
}
|
||||
|
||||
if task.id as usize == index_metadata.creation_task_id {
|
||||
created_at = task.processed_at();
|
||||
created_at = task.created_at();
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -179,13 +179,6 @@ impl Task {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn updated_at(&self) -> Option<OffsetDateTime> {
|
||||
match self.events.last() {
|
||||
Some(TaskEvent::Created(ts)) => Some(*ts),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl IndexUid {
|
||||
|
Loading…
Reference in New Issue
Block a user