mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +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
|
||||
.execute(query, parameters)
|
||||
.then((result) => {
|
||||
callback(result[0]);
|
||||
setImmediate(() => callback(result[0]));
|
||||
})
|
||||
.catch((error) => {
|
||||
setImmediate(() => callback(false));
|
||||
|
||||
Reference in new issue
Block a user