diff --git a/dump/src/reader/v5/mod.rs b/dump/src/reader/v5/mod.rs index d8f6be489..1e70b3437 100644 --- a/dump/src/reader/v5/mod.rs +++ b/dump/src/reader/v5/mod.rs @@ -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; } diff --git a/dump/src/reader/v5/tasks.rs b/dump/src/reader/v5/tasks.rs index 7f64eb3f3..528a870fc 100644 --- a/dump/src/reader/v5/tasks.rs +++ b/dump/src/reader/v5/tasks.rs @@ -179,13 +179,6 @@ impl Task { _ => None, } } - - pub fn updated_at(&self) -> Option { - match self.events.last() { - Some(TaskEvent::Created(ts)) => Some(*ts), - _ => None, - } - } } impl IndexUid {