Skip to content

Commit

Permalink
Merge pull request #57 from aura-nw/dev-andqk
Browse files Browse the repository at this point in the history
fix get details txs
  • Loading branch information
andqk00 authored Mar 17, 2022
2 parents 7a1ad43 + f694772 commit c65a455
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/impls/transaction.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class TransactionService extends BaseService implements ITransactionServi
let result;
if(request.isHistory) result = await this.transRepos.getAuraTx(request);
else result = await this.multisigTransactionRepos.getQueueTransaction(request);
console.log(result);
// Loop to get Status based on Code and get Multisig Confirm of Multisig Tx
for (let i = 0; i < result.length; i++) {
if(result[i].Status == '0') result[i].Status = TRANSACTION_STATUS.SUCCESS;
Expand Down Expand Up @@ -124,7 +123,7 @@ export class TransactionService extends BaseService implements ITransactionServi
let result;
let rawResult = await this.transRepos.getTransactionDetailsAuraTx(condition);
// Query based on condition
if(!rawResult || rawResult.Code !== 0) {
if(!rawResult || rawResult.Code !== '0') {
rawResult = await this.multisigTransactionRepos.getTransactionDetailsMultisigTransaction(condition);
}
if(!rawResult) return res.return(ErrorMap.TRANSACTION_NOT_EXIST);
Expand Down

0 comments on commit c65a455

Please sign in to comment.