refactor(database): move from mysql2/promise to callback api

Micro-optimisation for rawQuery. rawExecute and rawTransaction will
still utilise the promise api (pool.promise()).
This commit is contained in:
Linden committed 2022-03-25 06:07:57 +00:00
1 parent dd05cb8e68
commit dea98f7c5b
5 files changed
+22 -33

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export const rawTransaction = async (
await scheduleTick();
const { transactions, cb } = parseTransaction(invokingResource, queries, parameters, callback);
const connection = await pool.getConnection();
const connection = await pool.promise().getConnection();
let response = false;
try {