diff --git a/index.html b/index.html index 80a35e828..2b1c8bbc5 100644 --- a/index.html +++ b/index.html @@ -1030,12 +1030,12 @@ knex('accounts') knex.transaction(function(trx) { - knex('books').transacting(t).insert({name: 'Old Books'}) + knex('books').transacting(trx).insert({name: 'Old Books'}) .then(function(id) { - return someExternalMethod(t); + return someExternalMethod(trx); }) - .then(t.commit) - .then(t.rollback); + .then(trx.commit) + .then(trx.rollback); }).then(function(resp) { console.log('Transaction complete.');