pub async fn write_step_snapshot_for_date(
conn: &mut PgConnection,
snapshot_date: NaiveDate,
counts: &[StepCount],
) -> ModelResult<()>Expand description
Writes one day’s counts per step and engagement, as
count_by_step_and_engagement
returns them summed over modules. Idempotent.