Skip to main content

get_manual_linking_email_sends

Function get_manual_linking_email_sends 

Source
pub async fn get_manual_linking_email_sends(
    conn: &mut PgConnection,
    course_ids: &[Uuid],
) -> ModelResult<Vec<ManualLinkingEmailSend>>
Expand description

The linking emails sent by hand on these courses, newest first.

An action without details.emailed_to, as the earliest ones are, is matched to the ledger row its send claimed: the newest one for the same course and student number claimed at most a minute before the action. The per person and course quiet period leaves no other row in that window.