diff --git a/app.js b/app.js index 7887e68..3d9d4c9 100644 --- a/app.js +++ b/app.js @@ -15,7 +15,7 @@ var con = mysql.createConnection({ password: "Wnc4q_75", database: "minis", ssl: { - ca: fs.readFileSync(process.cwd() + "/mysql-ca.ctf") + ca: fs.readFileSync(process.cwd() + "/mysql-ca.crt") } }); @@ -29,7 +29,7 @@ con.connect(err => { app.get('/', (req, res) => { - if(!isConnected()){res.send("No Connection to database
" + JSON.stringify(cause) + "
" + fs.readFileSync(process.cwd() + "/mysql-ca.ctf"));return} + if(!isConnected()){res.send("No Connection to database
" + JSON.stringify(cause));return} res.send("Welcome to the miniplan api!"); });