fix: cache background statistics response
This commit is contained in:
+4
-4
@@ -896,10 +896,10 @@ async function adminRoutes(fastify) {
|
||||
statsSummaryCache = {
|
||||
at: Date.now(),
|
||||
value: {
|
||||
total: counts.total,
|
||||
withContent: counts.withContent,
|
||||
withEmbedding: counts.withEmbedding,
|
||||
eventCount: counts.eventCount,
|
||||
total: value.total,
|
||||
withContent: value.withContent,
|
||||
withEmbedding: value.withEmbedding,
|
||||
eventCount: value.eventCount,
|
||||
},
|
||||
};
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user