Skip to content
Permalink
Browse files

Fixing "ER_EMPTY_QUERY" error

The variable i is an object and is used as an index on line 326
  • Loading branch information...
monisnap-julien committed Mar 23, 2019
1 parent 3b2f0f6 commit 3b5a4c3c6d92c8580fa70f2c54ec4406b717b869
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
@@ -321,7 +321,7 @@ const commit = async (queries,rollback) => {
await query('START TRANSACTION')

// Loop through queries
for (let i in queries) {
for (let i = 0; i < queries.length; i++) {
// Execute the queries, pass the rollback as context
let result = await query.apply({rollback},queries[i](results[results.length-1],results))
// Add the result to the main results accumulator

0 comments on commit 3b5a4c3

Please sign in to comment.
You can’t perform that action at this time.