@@ -47,10 +47,10 @@ var Txn = (function () {
4747 this . ctx = new messages . TxnContext ( ) ;
4848 this . ctx . setLinRead ( this . dc . getLinRead ( ) ) ;
4949 }
50- Txn . prototype . query = function ( q , options ) {
51- return this . queryWithVars ( q , null , options ) ;
50+ Txn . prototype . query = function ( q , metadata , options ) {
51+ return this . queryWithVars ( q , null , metadata , options ) ;
5252 } ;
53- Txn . prototype . queryWithVars = function ( q , vars , options ) {
53+ Txn . prototype . queryWithVars = function ( q , vars , metadata , options ) {
5454 return __awaiter ( this , void 0 , void 0 , function ( ) {
5555 var req , varsMap_1 , c , res , _a , _b ;
5656 return __generator ( this , function ( _c ) {
@@ -76,7 +76,7 @@ var Txn = (function () {
7676 this . dc . debug ( "Query request:\n" + util_1 . stringifyMessage ( req ) ) ;
7777 c = this . dc . anyClient ( ) ;
7878 _b = ( _a = types ) . createResponse ;
79- return [ 4 , c . query ( req , options ) ] ;
79+ return [ 4 , c . query ( req , metadata , options ) ] ;
8080 case 1 :
8181 res = _b . apply ( _a , [ _c . sent ( ) ] ) ;
8282 this . mergeContext ( res . getTxn ( ) ) ;
@@ -86,7 +86,7 @@ var Txn = (function () {
8686 } ) ;
8787 } ) ;
8888 } ;
89- Txn . prototype . mutate = function ( mu , options ) {
89+ Txn . prototype . mutate = function ( mu , metadata , options ) {
9090 return __awaiter ( this , void 0 , void 0 , function ( ) {
9191 var ag , c , e_1 , e_2 ;
9292 return __generator ( this , function ( _a ) {
@@ -103,7 +103,7 @@ var Txn = (function () {
103103 _a . label = 1 ;
104104 case 1 :
105105 _a . trys . push ( [ 1 , 3 , , 8 ] ) ;
106- return [ 4 , c . mutate ( mu , options ) ] ;
106+ return [ 4 , c . mutate ( mu , metadata , options ) ] ;
107107 case 2 :
108108 ag = _a . sent ( ) ;
109109 return [ 3 , 8 ] ;
@@ -131,7 +131,7 @@ var Txn = (function () {
131131 } ) ;
132132 } ) ;
133133 } ;
134- Txn . prototype . commit = function ( options ) {
134+ Txn . prototype . commit = function ( metadata , options ) {
135135 return __awaiter ( this , void 0 , void 0 , function ( ) {
136136 var c , e_3 ;
137137 return __generator ( this , function ( _a ) {
@@ -148,7 +148,7 @@ var Txn = (function () {
148148 _a . label = 1 ;
149149 case 1 :
150150 _a . trys . push ( [ 1 , 3 , , 4 ] ) ;
151- return [ 4 , c . commitOrAbort ( this . ctx , options ) ] ;
151+ return [ 4 , c . commitOrAbort ( this . ctx , metadata , options ) ] ;
152152 case 2 :
153153 _a . sent ( ) ;
154154 return [ 3 , 4 ] ;
@@ -160,7 +160,7 @@ var Txn = (function () {
160160 } ) ;
161161 } ) ;
162162 } ;
163- Txn . prototype . discard = function ( options ) {
163+ Txn . prototype . discard = function ( metadata , options ) {
164164 return __awaiter ( this , void 0 , void 0 , function ( ) {
165165 var c ;
166166 return __generator ( this , function ( _a ) {
@@ -175,7 +175,7 @@ var Txn = (function () {
175175 }
176176 this . ctx . setAborted ( true ) ;
177177 c = this . dc . anyClient ( ) ;
178- return [ 4 , c . commitOrAbort ( this . ctx , options ) ] ;
178+ return [ 4 , c . commitOrAbort ( this . ctx , metadata , options ) ] ;
179179 case 1 :
180180 _a . sent ( ) ;
181181 return [ 2 ] ;
0 commit comments