diff --git a/geneit_app/package-lock.json b/geneit_app/package-lock.json index 8a163ff..4f5d8a5 100644 --- a/geneit_app/package-lock.json +++ b/geneit_app/package-lock.json @@ -2734,10 +2734,9 @@ "license": "MIT" }, "node_modules/filesize": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.0.tgz", - "integrity": "sha512-GTLKYyBSDz3nPhlLVPjPWZCnhkd9TrrRArNcy8Z+J2cqScB7h2McAzR6NBX6nYOoWafql0roY8hrocxnZBv9CQ==", - "license": "BSD-3-Clause", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.1.tgz", + "integrity": "sha512-L0cdwZrKlwZQkMSFnCflJ6J2Y+5egO/p3vgRSDQGxQt++QbUZe5gMbRO6kg6gzwQDPvq2Fk9AmoxUNfZ5gdqaQ==", "engines": { "node": ">= 10.4.0" } diff --git a/geneit_backend/src/connections/db_connection.rs b/geneit_backend/src/connections/db_connection.rs index 3827829..0fb543f 100644 --- a/geneit_backend/src/connections/db_connection.rs +++ b/geneit_backend/src/connections/db_connection.rs @@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error}; use diesel::{Connection, PgConnection}; use std::cell::RefCell; thread_local! { - static POSTGRES_CONNECTION: RefCell> = RefCell::new(None); + static POSTGRES_CONNECTION: RefCell> = const { RefCell::new(None) }; } /// Execute a request on the database diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index a2d6872..aa201d7 100644 --- a/geneit_backend/src/connections/redis_connection.rs +++ b/geneit_backend/src/connections/redis_connection.rs @@ -7,7 +7,7 @@ use std::cell::RefCell; use std::time::Duration; thread_local! { - static REDIS_CONNECTION: RefCell> = RefCell::new(None); + static REDIS_CONNECTION: RefCell> = const { RefCell::new(None) }; } /// Execute a request on Redis