feat(api): add insights endpoints
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import {
|
||||
getChartPrevStartEndDate,
|
||||
getChartStartEndDate,
|
||||
getOrganizationSubscriptionChartEndDate,
|
||||
getSettingsForProject,
|
||||
overviewService,
|
||||
@@ -10,10 +12,6 @@ import { type IChartRange, zRange } from '@openpanel/validation';
|
||||
import { format } from 'date-fns';
|
||||
import { z } from 'zod';
|
||||
import { cacheMiddleware, createTRPCRouter, publicProcedure } from '../trpc';
|
||||
import {
|
||||
getChartPrevStartEndDate,
|
||||
getChartStartEndDate,
|
||||
} from './chart.helpers';
|
||||
|
||||
const cacher = cacheMiddleware((input) => {
|
||||
const range = input.range as IChartRange;
|
||||
|
||||
Reference in New Issue
Block a user