diff options
Diffstat (limited to 'src/db/models/organization.rs')
-rw-r--r-- | src/db/models/organization.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 620d7428..9c908193 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -648,8 +648,7 @@ impl UserOrganization { db_run! { conn: { users_organizations::table .filter(users_organizations::user_uuid.eq(user_uuid)) - .filter(users_organizations::status.eq(UserOrgStatus::Accepted as i32)) - .or_filter(users_organizations::status.eq(UserOrgStatus::Confirmed as i32)) + .filter(users_organizations::status.eq(UserOrgStatus::Accepted as i32).or(users_organizations::status.eq(UserOrgStatus::Confirmed as i32))) .count() .first::<i64>(conn) .unwrap_or(0) |