From 90cc67992bceb7b448df447636ba8be02b45178b Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Thu, 18 Jan 2024 16:55:07 +0100 Subject: [PATCH] Bugfix --- engine/engine/utils/dbHandler.js | 3 ++- engine/engine/utils/noDatabaseDbHandler.js | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/engine/utils/dbHandler.js b/engine/engine/utils/dbHandler.js index fa3cd2f..0caf566 100644 --- a/engine/engine/utils/dbHandler.js +++ b/engine/engine/utils/dbHandler.js @@ -18,6 +18,7 @@ //////////////////////////////////////// //////////////////////////////////////// +const fs = require("fs"); const mysql = require("mysql"); const path = require("path"); @@ -34,7 +35,7 @@ const connection = mysql.createConnection({ : undefined, timeout: 5000, ssl: { - ca: `${SSL_PATH}/ca-cert.pem`, + ca: fs.readFileSync(`${SSL_PATH}/ca-cert.pem`), }, // ssl: { // ca: (() => { diff --git a/engine/engine/utils/noDatabaseDbHandler.js b/engine/engine/utils/noDatabaseDbHandler.js index d757cae..1285bc4 100644 --- a/engine/engine/utils/noDatabaseDbHandler.js +++ b/engine/engine/utils/noDatabaseDbHandler.js @@ -16,7 +16,7 @@ const connection = mysql.createConnection({ : undefined, timeout: 5000, ssl: { - ca: `${SSL_PATH}/ca-cert.pem`, + ca: fs.readFileSync(`${SSL_PATH}/ca-cert.pem`), }, }); diff --git a/package.json b/package.json index 213d001..21c8445 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.9.9", + "version": "2.0.0", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {