Invidious is an alternative front-end to YouTube
Add 'lastChannelRefreshedAt' to /api/v1/stats
Omar Rothf0cc7a925c3e
diff --git a/src/invidious.cr b/src/invidious.crindex 7222e264..70c62dbc 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -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,},}