From 25b996dc04d30eb0aa596ff4b2b4c43f50c55f99 Mon Sep 17 00:00:00 2001 From: GHMatti <33543464+GHMatti@users.noreply.github.com> Date: Fri, 31 May 2019 14:47:23 +0200 Subject: [PATCH] Update to 3.1.1 --- __resource.lua | 2 +- mysql-async.js | 2 +- src/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__resource.lua b/__resource.lua index e4da857..5c75f5d 100644 --- a/__resource.lua +++ b/__resource.lua @@ -1,6 +1,6 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' -version '3.1.0' +version '3.1.1' server_script 'mysql-async.js' client_script 'mysql-async-client.js' diff --git a/mysql-async.js b/mysql-async.js index 76a67b6..176c44b 100644 --- a/mysql-async.js +++ b/mysql-async.js @@ -5116,7 +5116,7 @@ global.exports('mysql_fetch_scalar', (query, parameters, callback) => { const sql = prepareQuery(query, parameters); mysql.execute({ sql, typeCast }, invokingResource).then((result) => { safeInvoke(callback, (result && result[0]) ? Object.values(result[0])[0] : null); - }); + }).catch(() => {}); }); global.exports('mysql_insert', (query, parameters, callback) => { diff --git a/src/package.json b/src/package.json index 8b38254..6fad024 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "mysql-async", - "version": "3.1.0", + "version": "3.1.1", "description": "fivem-mysql-async", "private": true, "scripts": {