fix(sql): oops forgot to remove the returns i put in to ignore an error

This commit is contained in:
2025-03-13 21:38:54 -05:00
parent da04e9d35d
commit bb1635a5b4

View File

@@ -18,8 +18,6 @@ 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") {
@@ -46,7 +44,6 @@ export const initializeProdPool = async () => {
};
export const closePool = async () => {
return;
try {
await pool.close();
createLog("info", "lst", "sqlProd", "Connection pool closed");