fix(callback): forgot to wrap setImmediate on execute export

This commit is contained in:
dunak-debug committed 2021-08-16 20:09:37 +02:00
1 parent e9a18b5a46
commit ea98463224
1 file changed
+1 -1
+1 -1
View File
@@ -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));