fix(sql): fix connection issues in the sql connection loosing it

This commit is contained in:
2025-12-31 07:54:26 -06:00
parent e8a2ef8b85
commit 56934216f7
6 changed files with 43 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ const main = async () => {
// connect to the prod sql
console.log("Connecting to the sql server");
await initializeProdPool();
// express app
const app = express();
@@ -184,7 +184,7 @@ const main = async () => {
// swaggerUi.serve,
// swaggerUi.setup(openapiSpec, swaggerUiOptions),
// );
initializeProdPool();
setupSwagger(app, basePath)
app.use(basePath + "/d", express.static(join(__dirname, "../lstDocs/build")));
app.use(