mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02: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
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue