Skip to content

Commit

Permalink
remove all_unfiltered for usePartnerAnalytics and useProgramAnalytics
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Jan 31, 2025
1 parent d67aa3c commit 3519dbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/lib/swr/use-partner-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function usePartnerAnalytics(
start: params.start.toISOString(),
end: params.end.toISOString(),
}
: { interval: params?.interval ?? "all_unfiltered" }),
: { interval: params?.interval ?? "1y" }),
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
},
).toString()}`,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/swr/use-program-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function useProgramAnalytics(params?: PartnerAnalyticsFilters) {
start: params.start.toISOString(),
end: params.end.toISOString(),
}
: { interval: params?.interval ?? "all_unfiltered" }),
: { interval: params?.interval ?? "1y" }),
groupBy: params?.groupBy ?? "count",
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
workspaceId: workspaceId!,
Expand Down
1 change: 1 addition & 0 deletions apps/web/ui/partners/program-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function ProgramCard({
function ProgramCardEarnings({ program }: { program: ProgramProps }) {
const { data: analytics } = usePartnerAnalytics({
programId: program.id,
interval: "1y",
});
const { data: timeseries } = usePartnerAnalytics({
programId: program.id,
Expand Down

0 comments on commit 3519dbe

Please sign in to comment.