kopia lustrzana https://github.com/iv-org/invidious
Add 'lastChannelRefreshedAt' to /api/v1/stats
rodzic
057e69fe70
commit
f0cc7a925c
|
@ -145,7 +145,8 @@ if config.statistics_enabled
|
|||
},
|
||||
},
|
||||
"metadata" => {
|
||||
"updatedAt" => Time.now.to_unix,
|
||||
"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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue