Skip to main content

upsert

pub async fn upsert(
    conn: &mut PgConnection,
    user_id: Uuid,
    course_id: Uuid,
    consent_given: bool,
) -> ModelResult<CourseCreditRegistrationConsent>
Expand description

Records the student’s answer, keeping both timestamps so gave-then-withdrew history survives.