Skip to main content

resolve_pairing

Function resolve_pairing 

Source
pub async fn resolve_pairing(
    conn: &mut PgConnection,
    source_page_id: Uuid,
    course_language_group_id: Uuid,
) -> ModelResult<Result<Uuid, PairingRefusal>>
Expand description

The page language group a page of a course in course_language_group_id joins to pair with source_page_id, a published page of another course in that course language group.

Doesn’t check that the source is in another course; a course’s own page passes.