mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add 'lastChannelRefreshedAt' to /api/v1/stats
This commit is contained in:
parent
057e69fe70
commit
f0cc7a925c
1 changed files with 2 additions and 1 deletions
|
@ -146,6 +146,7 @@ if config.statistics_enabled
|
|||
},
|
||||
"metadata" => {
|
||||
"updatedAt" => Time.now.to_unix,
|
||||
"lastChannelRefreshedAt" => PG_DB.query_one?("SELECT updated FROM channels ORDER BY updated DESC LIMIT 1", as: Time).try &.to_unix || 0,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue