From 6c45671019bdfaab1ee110f0e36f74e07df4eb11 Mon Sep 17 00:00:00 2001 From: GHMatti <33543464+GHMatti@users.noreply.github.com> Date: Fri, 10 May 2019 13:33:15 +0200 Subject: [PATCH] 3.0.11, fixed me breaking --- __resource.lua | 2 +- mysql-async.js | 4 ++-- src/mysql.js | 4 ++-- src/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/__resource.lua b/__resource.lua index 51625e0..a8cc89f 100644 --- a/__resource.lua +++ b/__resource.lua @@ -1,5 +1,5 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' -version '3.0.10' +version '3.0.11' server_script 'mysql-async.js' diff --git a/mysql-async.js b/mysql-async.js index 498778e..5500fcd 100644 --- a/mysql-async.js +++ b/mysql-async.js @@ -5080,7 +5080,7 @@ PoolSelector.ORDER = function PoolSelectorOrder() { const mysql = __webpack_require__(14); -const { Promise } = global.Promise; +const { Promise } = global; let config = {}; let debug = 0; let slowQueryWarning = 500; @@ -5153,7 +5153,7 @@ function execute(sql, invokingResource, connection) { }); }); queryPromise.catch((error) => { - console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql}": ${error.message}`); + console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql.sql}": ${error.message}`); }); return queryPromise; } diff --git a/src/mysql.js b/src/mysql.js index 2cfe0ac..e21fc06 100644 --- a/src/mysql.js +++ b/src/mysql.js @@ -1,6 +1,6 @@ const mysql = require('mysql'); -const { Promise } = global.Promise; +const { Promise } = global; let config = {}; let debug = 0; let slowQueryWarning = 500; @@ -73,7 +73,7 @@ function execute(sql, invokingResource, connection) { }); }); queryPromise.catch((error) => { - console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql}": ${error.message}`); + console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql.sql}": ${error.message}`); }); return queryPromise; } diff --git a/src/package.json b/src/package.json index 6844eb2..b687d50 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "mysql-async", - "version": "3.0.10", + "version": "3.0.11", "description": "fivem-mysql-async", "private": true, "scripts": {