Skip to content

Commit f6c0674

Browse files
committed
Fix concurrency bug fallback
loopbackio#146
1 parent 6992f35 commit f6c0674

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
@@ -70,9 +70,9 @@ function mixinTransaction(PostgreSQL) {
7070
} else {
7171
var pool = this.pg;
7272
if (err) {
73-
pool.destroy(connection);
73+
pool.pool.destroy(connection);
7474
} else {
75-
pool.release(connection);
75+
pool.pool.release(connection);
7676
}
7777
}
7878
};

0 commit comments

Comments
 (0)