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