Bugfix
This commit is contained in:
@@ -33,7 +33,16 @@ const connection = mysql.createConnection({
|
||||
: undefined,
|
||||
timeout: 5000,
|
||||
ssl: {
|
||||
ca: fs.readFileSync(process.env.DSQL_SSL_CA_PATH || ""),
|
||||
ca: (() => {
|
||||
try {
|
||||
if (process.env.DSQL_SSL_CA_PATH) {
|
||||
return fs.readFileSync(process.env.DSQL_SSL_CA_PATH);
|
||||
}
|
||||
return undefined;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
})(),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -15,7 +15,16 @@ const connection = mysql.createConnection({
|
||||
: undefined,
|
||||
timeout: 5000,
|
||||
ssl: {
|
||||
ca: fs.readFileSync(process.env.DSQL_SSL_CA_PATH || ""),
|
||||
ca: (() => {
|
||||
try {
|
||||
if (process.env.DSQL_SSL_CA_PATH) {
|
||||
return fs.readFileSync(process.env.DSQL_SSL_CA_PATH);
|
||||
}
|
||||
return undefined;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
})(),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "1.9.7",
|
||||
"version": "1.9.8",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user