pub async fn record_linking_counters(
conn: &mut PgConnection,
course_code: &str,
counters: &AccountLinkingCodeCounters,
unlinked_enrolled_before_count: i32,
) -> ModelResult<()>Expand description
Overwrites the code’s linking counters with what its latest enrolment list did.
unlinked_enrolled_before_count counts the people the list held outside the counters: enrolled
before account linking began, and linked to no account.