Skip to content

Commit 6c45671

Browse files
GHMattiGHMatti
authored andcommitted
3.0.11, fixed me breaking
1 parent 9d0eba2 commit 6c45671

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

__resource.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
22

3-
version '3.0.10'
3+
version '3.0.11'
44

55
server_script 'mysql-async.js'

mysql-async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5080,7 +5080,7 @@ PoolSelector.ORDER = function PoolSelectorOrder() {
50805080

50815081
const mysql = __webpack_require__(14);
50825082

5083-
const { Promise } = global.Promise;
5083+
const { Promise } = global;
50845084
let config = {};
50855085
let debug = 0;
50865086
let slowQueryWarning = 500;
@@ -5153,7 +5153,7 @@ function execute(sql, invokingResource, connection) {
51535153
});
51545154
});
51555155
queryPromise.catch((error) => {
5156-
console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql}": ${error.message}`);
5156+
console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql.sql}": ${error.message}`);
51575157
});
51585158
return queryPromise;
51595159
}

src/mysql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const mysql = require('mysql');
22

3-
const { Promise } = global.Promise;
3+
const { Promise } = global;
44
let config = {};
55
let debug = 0;
66
let slowQueryWarning = 500;
@@ -73,7 +73,7 @@ function execute(sql, invokingResource, connection) {
7373
});
7474
});
7575
queryPromise.catch((error) => {
76-
console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql}": ${error.message}`);
76+
console.log(`[ERROR] [MySQL] [${invokingResource}] An error happens on MySQL for query "${sql.sql}": ${error.message}`);
7777
});
7878
return queryPromise;
7979
}

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mysql-async",
3-
"version": "3.0.10",
3+
"version": "3.0.11",
44
"description": "fivem-mysql-async",
55
"private": true,
66
"scripts": {

0 commit comments

Comments
 (0)