Skip to content

Commit

Permalink
Merge pull request #58 from aura-nw/dev
Browse files Browse the repository at this point in the history
Fix get details txs function
  • Loading branch information
andqk00 authored Mar 17, 2022
2 parents 5ef02d8 + c65a455 commit 8cf142f
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 8cf142f

Please sign in to comment.