mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 05:54:30 +01:00
Add reader.v5.tasks.Task.updated_at.
There was no way to "quickly" get the update date.
This commit is contained in:
parent
1be4619b91
commit
a43a0712fa
@ -179,6 +179,14 @@ impl Task {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn updated_at(&self) -> Option<OffsetDateTime> {
|
||||
match self.events.last() {
|
||||
Some(TaskEvent::Created(ts)) => Some(*ts),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl IndexUid {
|
||||
|
Loading…
x
Reference in New Issue
Block a user