fix: cache background statistics response
This commit is contained in:
+4
-4
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user