feat: show last/next/current indexing run time
1 file changed, 11 insertions(+), 0 deletions(-)
changed files
M internal/index/index_meta.go → internal/index/index_meta.go
@@ -118,3 +118,14 @@ i.data.Sources = make(map[string]*SourceMeta) } i.data.Sources[source] = meta } + +func (i *Meta) LastUpdated() time.Time { + var last time.Time + for _, sourceMeta := range i.data.Sources { + if sourceMeta.Updated.After(last) { + last = sourceMeta.Updated + } + } + + return last +}