mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
fix(callback): forgot to wrap setImmediate on execute export
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -11,7 +11,7 @@ global.exports(
|
|||||||
pool
|
pool
|
||||||
.execute(query, parameters)
|
.execute(query, parameters)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
callback(result[0]);
|
setImmediate(() => callback(result[0]));
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setImmediate(() => callback(false));
|
setImmediate(() => callback(false));
|
||||||
|
|||||||
Reference in new issue
Block a user