1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

Text connection fix

This commit is contained in:
2020-06-20 21:58:57 +02:00
parent 42e0353393
commit baea5c26e2
6 changed files with 6 additions and 10 deletions

View File

@ -73,14 +73,10 @@ export class AntaresConnector {
switch (this._client) {
case 'maria':
case 'mysql':
if (!this._poolSize) {
const connection = mysql.createConnection(this._params);
this._connection = connection.promise();
}
if (!this._poolSize)
this._connection = mysql.createConnection(this._params);
else
this._connection = mysql.createPool({ ...this._params, connectionLimit: this._poolSize });
// this._connection = pool.promise();
break;
case 'mssql': {
const mssqlParams = {

View File

@ -45,7 +45,7 @@ export default {
computed: {
...mapGetters({
updateStatus: 'application/getUpdateStatus',
downloadPercentage: 'application/getDownloadProgress'
downloadPercentage: 'application/getDownloadProgress'// TODO: remove float
}),
updateMessage () {
switch (this.updateStatus) {