Allow querying active user counts for people that have collaborated
This commit is contained in:
parent
4664683069
commit
316a534a16
2 changed files with 98 additions and 16 deletions
|
@ -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?,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue