fix: cache background statistics response

This commit is contained in:
ImBenji
2026-08-04 21:51:18 +01:00
parent b3a55fac08
commit be18eb77f0
+4 -4
View File
@@ -896,10 +896,10 @@ async function adminRoutes(fastify) {
statsSummaryCache = { statsSummaryCache = {
at: Date.now(), at: Date.now(),
value: { value: {
total: counts.total, total: value.total,
withContent: counts.withContent, withContent: value.withContent,
withEmbedding: counts.withEmbedding, withEmbedding: value.withEmbedding,
eventCount: counts.eventCount, eventCount: value.eventCount,
}, },
}; };
return value; return value;