Skip to main content

make_enrolment_checks_due_for_testing

Function make_enrolment_checks_due_for_testing 

Source
pub async fn make_enrolment_checks_due_for_testing(
    conn: &mut PgConnection,
    scope: &RegistrationScope,
) -> ModelResult<u64>
Expand description

Makes every row in scope that waits for an enrolment check due now, as if its next rung had come, and returns how many it moved. Exists only for test setup: specs cannot wait out a day for a row’s first check.