diff --git a/v-model/src/storage/postgres.rs b/v-model/src/storage/postgres.rs index 62d2b01..cba8ca4 100644 --- a/v-model/src/storage/postgres.rs +++ b/v-model/src/storage/postgres.rs @@ -130,7 +130,7 @@ where } if let Some(email) = email { - query = query.filter(api_user_provider::emails.contains(email)); + query = query.filter(api_user_provider::emails.overlaps_with(email)); } if let Some(groups) = groups {