Update geneit_backend/src/connections/db_connection.rs
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
Pierre HUBERT 2024-03-22 10:31:46 +00:00
parent 299cd4db07
commit de69009174

View File

@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error};
use diesel::{Connection, PgConnection};
use std::cell::RefCell;
thread_local! {
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = RefCell::new(None);
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = const { RefCell::new(None) };
}
/// Execute a request on the database