Skip to main content

filter_enabled

Function filter_enabled 

Source
pub async fn filter_enabled(
    pool: &Pool,
    user_ids: &[i64],
    kind: &str,
) -> Result<Vec<i64>, ExecError>
Expand description

Filter user_ids to those who haven’t opted out of kind. Missing rows are kept (default = enabled). Used at fan-out sites to skip email composition for muted users.

§Errors

Driver / query failures.