Skip to content

Commit 54d1dc3

Browse files
committed
Use pool.pool.release over pool.release (loopbackio#109)
1 parent 553d31d commit 54d1dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transaction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function mixinTransaction(PostgreSQL) {
6969
} else {
7070
var pool = this.pg;
7171
if (err) {
72-
pool.destroy(connection);
72+
pool.pool.destroy(connection);
7373
} else {
74-
pool.release(connection);
74+
pool.pool.release(connection);
7575
}
7676
}
7777
};

0 commit comments

Comments
 (0)