diff --git a/lib/LargeObjectManager.js b/lib/LargeObjectManager.js index 9bacd90..e53998a 100644 --- a/lib/LargeObjectManager.js +++ b/lib/LargeObjectManager.js @@ -6,7 +6,7 @@ var LargeObject = require('./LargeObject'); function pgPromiseAdapter(tx) { return function query(options, callback) { tx.query(options) - .then(function(rows) { + .then(function({ rows }) { callback(null, {rows: rows}); }) .catch(function(error) {