Skip to main content

admin_facing_page

Function admin_facing_page 

Source
async fn admin_facing_page(
    conn: &mut PgConnection,
    filters: &AdminCreditRegistrationFilters<'_>,
    sort: AdminCreditRegistrationSort,
    limit: i64,
    offset: i64,
) -> ModelResult<Vec<AdminCreditRegistration>>
Expand description

The one query behind both get_admin_facing and count_admin_facing, so a filter wired into one cannot be missed in the other. total_count is computed before the limit, which is why count_admin_facing reads it with limit = 1.