wallet-core: return correct status from processReserveBankStatus
This commit is contained in:
parent
0a3f9979b2
commit
3bf4ce7f13
@ -1731,9 +1731,15 @@ async function processReserveBankStatus(
|
|||||||
await tx.withdrawalGroups.put(r);
|
await tx.withdrawalGroups.put(r);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (status.transfer_done) {
|
||||||
return {
|
return {
|
||||||
status: BankStatusResultCode.Done,
|
status: BankStatusResultCode.Done,
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
status: BankStatusResultCode.Waiting,
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function internalCreateWithdrawalGroup(
|
export async function internalCreateWithdrawalGroup(
|
||||||
|
Loading…
Reference in New Issue
Block a user