Skip to content

Commit e3c00c0

Browse files
committed
Fixed beginTransaction to include connection part of transaction
1 parent 11a4a0e commit e3c00c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/transaction.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function mixinTransaction(PostgreSQL) {
3737
if (err) return cb(err);
3838
const tx = new Transaction(connector, connection);
3939
tx.txId = uuid.v1();
40+
tx.connector = connector;
41+
tx.connection = connection;
4042
connection.txId = tx.txId;
4143
cb(null, tx);
4244
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apexdesigner/loopback-connector-postgresql",
3-
"version": "7.0.12",
3+
"version": "7.0.13",
44
"description": "Loopback PostgreSQL Connector",
55
"keywords": [
66
"LoopBack",

0 commit comments

Comments
 (0)