mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
Add 'lastChannelRefreshedAt' to /api/v1/stats
This commit is contained in:
@ -145,7 +145,8 @@ if config.statistics_enabled
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"metadata" => {
|
"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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user