fix(api): exclude some keys for export cache

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-25 21:23:08 +02:00
parent 0c93944d8a
commit c4be1dc05d
3 changed files with 27 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ import {
} from '@openpanel/db';
import { getChart } from '@openpanel/trpc/src/routers/chart.helpers';
import { zChartInput } from '@openpanel/validation';
import { omit } from 'ramda';
async function getProjectId(
request: FastifyRequest<{
@@ -125,7 +126,7 @@ export async function events(
const [data, totalCount] = await Promise.all([
getEventList(options),
getEventsCountCached(options),
getEventsCountCached(omit(['cursor', 'take'], options)),
]);
reply.send({