async fn apply_answer(
conn: &mut PgConnection,
row: &CreditRegistration,
context: &SubmissionContext,
item: Option<&SuotarResponseItem<EnrolmentResolutionResult>>,
event: OutcomeEvent<'_>,
) -> Result<bool>Expand description
Applies the study registry’s answer for one row. Returns whether the row ended up in a failure
state; errors with PreconditionFailed if the row left resolving_enrolment meanwhile.