File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class LocalConnection extends Connection {
224224 * @param {string } [params.path=''] -
225225 * @param {string[] } [params.inputs=[]] -
226226 * @param {string[] } [params.persist=[]] - Name(s) of relation(s) to persist.
227- * @return {Object } - {output , problems}
227+ * @return {Object } - {txn_output, query_output , problems}
228228 */
229229 query ( params ) {
230230 // Check if `outputs` is valid, exit if not.
@@ -255,9 +255,10 @@ class LocalConnection extends Connection {
255255 this . runAction ( action , txnParams )
256256 . then ( res => {
257257 const tr = res . transactionResult ;
258- const output = tr . actions [ 0 ] . result . output ;
258+ const txn_output = tr . output ;
259+ const query_output = tr . actions [ 0 ] . result . output ;
259260 const problems = tr . problems ;
260- resolve ( { output , problems} ) ;
261+ resolve ( { txn_output , query_output , problems} ) ;
261262 } )
262263 . catch ( error => reject ( error ) )
263264 } )
You can’t perform that action at this time.
0 commit comments