documentation fix

This commit is contained in:
Chris Santero 2014-06-08 11:46:57 -04:00
parent 82f84c467f
commit a60b00b61e

View File

@ -1029,12 +1029,12 @@ knex('accounts')
knex.transaction(function(trx) { knex.transaction(function(trx) {
knex('books').transacting(t).insert({name: 'Old Books'}) knex('books').transacting(trx).insert({name: 'Old Books'})
.then(function(id) { .then(function(id) {
return someExternalMethod(t); return someExternalMethod(trx);
}) })
.then(t.commit) .then(trx.commit)
.then(t.rollback); .then(trx.rollback);
}).then(function(resp) { }).then(function(resp) {
console.log('Transaction complete.'); console.log('Transaction complete.');