pub async fn get_all_by_user_and_multiple_current_courses(
    conn: &mut PgConnection,
    course_ids: &[Uuid],
    user_id: Uuid
) -> ModelResult<Vec<UserCourseSettings>>
Expand description

Gets all of the user’s course settings that have their current course id included in the provided list.

The distinction for current courses is stated, because multiple courses can share the same course settings if they are different language versions of each other. Course settings that may exist for inactive courses will be omited. This behavior can be desireable in some cases, and should not be changed.

Note that this function doesn’t create any settings that are missing for the user, so the amount of results may be less than the amount of courses provided.