fix(transactions): resolve error when executing transaction

This commit is contained in:
Linden committed 2021-12-02 08:19:22 +11:00
1 parent bf2d729a39
commit b7763141b7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ game 'common'
name 'oxmysql'
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'
author 'overextended'
use_fxv2_oal 'yes'
+1 -1
View File
@@ -13,7 +13,7 @@ const transaction = async (queries, parameters, resource) => {
ScheduleResourceTick(resourceName);
const connection = await pool.getConnection();
try {
const startTime = process.hrtime(startTime);
const startTime = process.hrtime();
const fullQuery = parseTransaction(queries, parameters);
const transactionAmount = fullQuery.length;