mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08: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,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pub fn updated_at(&self) -> Option<OffsetDateTime> {
|
||||||
|
match self.events.last() {
|
||||||
|
Some(TaskEvent::Created(ts)) => Some(*ts),
|
||||||
|
_ => None,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IndexUid {
|
impl IndexUid {
|
||||||
|
Loading…
Reference in New Issue
Block a user