Skip to content

Commit

Permalink
3.0.11, fixed me breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
GHMatti authored and GHMatti committed May 10, 2019
1 parent 9d0eba2 commit 6c45671
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __resource.lua
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 2 additions & 2 deletions mysql-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/mysql.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const mysql = require('mysql');

const { Promise } = global.Promise;
const { Promise } = global;
let config = {};
let debug = 0;
let slowQueryWarning = 500;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mysql-async",
"version": "3.0.10",
"version": "3.0.11",
"description": "fivem-mysql-async",
"private": true,
"scripts": {
Expand Down

0 comments on commit 6c45671

Please sign in to comment.