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

This reverts commit ea98463224.
This commit is contained in:
dunak-debug committed 2021-08-16 21:36:04 +02:00
1 parent baa91dab4e
commit f4dc666a98
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) => {
setImmediate(() => callback(result[0])); callback(result[0]);
}) })
.catch((error) => { .catch((error) => {
callback(false); callback(false);