Skip to main content

get_latest_state_entries

Function get_latest_state_entries 

Source
pub async fn get_latest_state_entries(
    conn: &mut PgConnection,
    credit_registration_ids: &[Uuid],
    states: &[CreditRegistrationState],
) -> ModelResult<HashMap<(Uuid, CreditRegistrationState), DateTime<Utc>>>
Expand description

When each of the rows last entered each of states, keyed by (row, state). A pair missing from the map never entered that state; staying in a state is not entering it.