mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
refactor(db): rename serverReady variable
This commit is contained in:
1 parent
2ad0539107
commit
11b21f8ed2
4 files changed
+13
-13
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { pool, serverReady, waitForConnection } from '.';
|
||||
import { pool, isServerConnected, waitForConnection } from '.';
|
||||
import { parseArguments } from '../utils/parseArguments';
|
||||
import { parseResponse } from '../utils/parseResponse';
|
||||
import { logQuery } from '../logger';
|
||||
@@ -23,7 +23,7 @@ export const rawQuery = (
|
||||
scheduleTick();
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
if (!serverReady) await waitForConnection();
|
||||
if (!isServerConnected) await waitForConnection();
|
||||
|
||||
pool.query(query, parameters, (err, result, _, executionTime) => {
|
||||
if (err) return reject(err);
|
||||
|
||||
Reference in new issue
Block a user