diff --git a/src/db.rs b/src/db.rs index 87d38c7..ad34d60 100644 --- a/src/db.rs +++ b/src/db.rs @@ -2,7 +2,7 @@ use crate::{config::CONFIG, prisma::PrismaClient}; pub async fn get_prisma_client() -> PrismaClient { let database_url: String = format!( - "postgresql://{}:{}@{}:{}/{}?connection_limit=10", + "postgresql://{}:{}@{}:{}/{}?connection_limit=10&pool_timeout=300", CONFIG.postgres_user, CONFIG.postgres_password, CONFIG.postgres_host,