mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
fix(transactions): resolve error when executing transaction
This commit is contained in:
1 parent
bf2d729a39
commit
b7763141b7
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ game 'common'
|
|||||||
|
|
||||||
name 'oxmysql'
|
name 'oxmysql'
|
||||||
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
|
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
|
||||||
version '1.8.1'
|
version '1.8.2'
|
||||||
url 'https://github.com/overextended/oxmysql'
|
url 'https://github.com/overextended/oxmysql'
|
||||||
author 'overextended'
|
author 'overextended'
|
||||||
use_fxv2_oal 'yes'
|
use_fxv2_oal 'yes'
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ const transaction = async (queries, parameters, resource) => {
|
|||||||
ScheduleResourceTick(resourceName);
|
ScheduleResourceTick(resourceName);
|
||||||
const connection = await pool.getConnection();
|
const connection = await pool.getConnection();
|
||||||
try {
|
try {
|
||||||
const startTime = process.hrtime(startTime);
|
const startTime = process.hrtime();
|
||||||
|
|
||||||
const fullQuery = parseTransaction(queries, parameters);
|
const fullQuery = parseTransaction(queries, parameters);
|
||||||
const transactionAmount = fullQuery.length;
|
const transactionAmount = fullQuery.length;
|
||||||
|
|||||||
Reference in new issue
Block a user