Allow querying active user counts for people that have collaborated

This commit is contained in:
Antonio Scandurra 2022-07-18 10:16:24 +02:00
parent 4664683069
commit 316a534a16
2 changed files with 98 additions and 16 deletions

View file

@ -304,6 +304,8 @@ struct ActiveUserCountParams {
#[serde(flatten)]
period: TimePeriodParams,
durations_in_minutes: String,
#[serde(default)]
only_collaborative: bool,
}
#[derive(Serialize)]
@ -329,6 +331,7 @@ async fn get_active_user_counts(
.get_active_user_count(
params.period.start..params.period.end,
Duration::from_secs(duration * 60),
params.only_collaborative,
)
.await?,
})