Skip to content

Commit 74b925f

Browse files
author
Peter Liapin
committed
Fix loopbackio#109 bug transaction concurrency
1 parent 261877c commit 74b925f

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)