test(rfid): intial trials built

This commit is contained in:
2025-03-13 21:37:04 -05:00
parent 0054c8f7d4
commit da04e9d35d
15 changed files with 386 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ export const initializeProdPool = async () => {
return {success: false, message: "The server is not installed."};
}
return;
// make sure the server is not set to localhost this will prevent some weird issues later but can be localhost on the dev
const serverLoc = await db.select().from(settings).where(eq(settings.name, "dbServer"));
if (serverLoc[0].value === "localhost" && process.env.NODE_ENV !== "development") {
@@ -44,6 +46,7 @@ export const initializeProdPool = async () => {
};
export const closePool = async () => {
return;
try {
await pool.close();
createLog("info", "lst", "sqlProd", "Connection pool closed");