Skip to content

Commit

Permalink
fix: don't group time series response count in labeled objects
Browse files Browse the repository at this point in the history
  • Loading branch information
justkahdri committed Dec 16, 2024
1 parent b612147 commit 30686ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/basehub/src/events/primitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ type TableResponse<
type TimeSeriesResponse =
| {
success: true;
data: Array<{ count: number; label: string }>;
data: number;
}
| {
success: false;
Expand Down Expand Up @@ -185,7 +185,7 @@ export async function getEvents<Key extends `${EventKeys}:${string}`>(
key: Key,
options: GetOptions<ExtractEventKey<Key>>
): Promise<
{ success: true; data: Array<unknown> } | { success: false; error: string }
{ success: true; data: unknown } | { success: false; error: string }
> {
if (options.type === "table") {
const response = await fetch(QUERY_EVENTS_ENDPOINT_URL, {
Expand Down

0 comments on commit 30686ca

Please sign in to comment.