pub async fn get_active_by_id(
conn: &mut PgConnection,
id: Uuid,
) -> ModelResult<User>Expand description
Like get_by_id, but only returns a user that is not soft-deleted.
A soft-deleted (banned/removed) user yields RecordNotFound, the same as a nonexistent id,
so callers that must reject deleted accounts can treat both cases identically. get_by_id
deliberately does not filter, since some callers fetch a user’s own deleted row.