feat(sql server): added ping check to make sure the server is online before we try to connect

This commit is contained in:
2025-03-14 07:36:15 -05:00
parent 4b53700603
commit c2c43b1e22
2 changed files with 10 additions and 3 deletions

View File

@@ -7,10 +7,9 @@ import restart from "./route/restartProdSql.js";
const app = new OpenAPIHono();
// intially start the pool up.
setTimeout(() => {
setTimeout(async () => {
initializeProdPool();
}, 500);
}, 2 * 1000);
app.route("/sqlprod/connect", connect);
app.route("/sqlprod/close", closeConnection);