mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 18:45:15 +00:00
Fix how analytics writes are serialized (#5926)
This commit is contained in:
@@ -54,10 +54,12 @@ pub struct GetRequest {
|
||||
/// What time range to return statistics for.
|
||||
pub time_range: TimeRange,
|
||||
/// What analytics metrics to return data for.
|
||||
#[serde(default)]
|
||||
pub return_metrics: ReturnMetrics,
|
||||
/// What project IDs to return data for.
|
||||
///
|
||||
/// If this is empty, all of the user's projects will be included.
|
||||
#[serde(default)]
|
||||
pub project_ids: Vec<ProjectId>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user