summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 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,
},
}