feat(sql server): added ping check to make sure the server is online before we try to connect
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user