Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
interval reports can be omitted too
  • Loading branch information
mtojek committed Oct 3, 2023
commit b29553726adb227eb7c9eb9b3e862164e32f0c96
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,5 @@
}
],
"parameters_usage": []
},
"interval_reports": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
}
],
"parameters_usage": []
},
"interval_reports": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,5 @@
]
}
]
},
"interval_reports": []
}
}
2 changes: 1 addition & 1 deletion codersdk/insights.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (c *Client) UserActivityInsights(ctx context.Context, req UserActivityInsig
// TemplateInsightsResponse is the response from the template insights endpoint.
type TemplateInsightsResponse struct {
Report *TemplateInsightsReport `json:"report,omitempty"`
IntervalReports []TemplateInsightsIntervalReport `json:"interval_reports"`
IntervalReports []TemplateInsightsIntervalReport `json:"interval_reports,omitempty"`
}

// TemplateInsightsReport is the report from the template insights endpoint.
Expand Down
2 changes: 1 addition & 1 deletion site/src/api/typesGenerated.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,12 @@ function mapToDAUsResponse(
): DAUsResponse {
return {
tz_hour_offset: 0,
entries: data.map((d) => {
entries: data ? data.map((d) => {
return {
amount: d.active_users,
date: d.start_time,
};
}),
}) : [],
};
}

Expand Down