Skip to content

Commit ea6bdaa

Browse files
committed
Pass metadata and options to Txn.discard in Txn.mutate
1 parent f6af009 commit ea6bdaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/txn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var Txn = (function () {
112112
_a.label = 4;
113113
case 4:
114114
_a.trys.push([4, 6, , 7]);
115-
return [4, this.discard()];
115+
return [4, this.discard(metadata, options)];
116116
case 5:
117117
_a.sent();
118118
return [3, 7];

src/txn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class Txn {
117117
// mutations could have applied but not others, but we don't know which ones).
118118
// Discarding the transaction enforces that the user cannot use the txn further.
119119
try {
120-
await this.discard();
120+
await this.discard(metadata, options);
121121
} catch (e) {
122122
// Ignore error - user should see the original error.
123123
}

0 commit comments

Comments
 (0)