async fn credit_registration_configs(
conn: &mut PgConnection,
course_module_id: Option<Uuid>,
course_id: Option<Uuid>,
enabled_only: bool,
) -> ModelResult<Vec<CourseModuleCreditRegistrationConfig>>Expand description
Shared by every getter below, so the 13-column join lives in one place. enabled_only isn’t a
“this id or any” filter like the other two: the by-id and by-course lookups want every module,
opted in or not, while the all-modules listing wants only the opted-in ones.