Skip to main content

embed_changed_metadata

Function embed_changed_metadata 

Source
async fn embed_changed_metadata(
    conn: &mut PgConnection,
    app_config: &ApplicationConfiguration,
    course_id: Uuid,
    edit: &impl Fn(&CourseSettingsSnapshot) -> CourseSettingsSnapshot,
    prerequisites: &[EditCoursePrerequisite],
) -> ModelResult<TextEmbeddings>
Expand description

Embeds the settings texts that edit of the live settings and saving prerequisites would add or change.