diff --git a/src/database/models/organization_item.rs b/src/database/models/organization_item.rs
index 5a52558a..64d0d2ba 100644
--- a/src/database/models/organization_item.rs
+++ b/src/database/models/organization_item.rs
@@ -1,14 +1,11 @@
-use crate::models::ids::base62_impl::{parse_base62, to_base62};
+use crate::{models::ids::base62_impl::{parse_base62, to_base62}, database::redis::RedisPool};
use super::{ids::*, TeamMember};
-use redis::cmd;
use serde::{Deserialize, Serialize};
const ORGANIZATIONS_NAMESPACE: &str = "organizations";
const ORGANIZATIONS_TITLES_NAMESPACE: &str = "organizations_titles";
-const DEFAULT_EXPIRY: i64 = 1800;
-
#[derive(Deserialize, Serialize, Clone, Debug)]
/// An organization of users who together control one or more projects and organizations.
pub struct Organization {
@@ -55,7 +52,7 @@ impl Organization {
pub async fn get<'a, E>(
string: &str,
exec: E,
- redis: &deadpool_redis::Pool,
+ redis: &RedisPool,
) -> Result