Skip to main content

apply_poll_answer

Function apply_poll_answer 

Source
async fn apply_poll_answer(
    conn: &mut PgConnection,
    poll: &Poll,
    item: Option<&SuotarResponseItem<VerifyAttainmentResult>>,
    event: OutcomeEvent<'_>,
) -> Result<bool>
Expand description

Applies one poll’s answer. Everything but registered keeps the row where it is: notRegistered is a normal polling answer, and any other answer is one we will not act on blindly.